Merge pull request #53 from MultiBuds/mkfile-use-shell-builtins

fix(makefile): Use shell-builtins in Makefile
This commit is contained in:
Ben V. Brown 2023-05-19 10:12:20 +10:00 committed by GitHub
commit 172eb15036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ KBUILD_OUTPUT := $(shell ( if not exist $(KBUILD_OUTPUT)\ mkdir $(KBUILD_OUTPUT)
KBUILD_OUTPUT := $(subst \,/,$(KBUILD_OUTPUT))
else
KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
&& /bin/pwd)
&& pwd)
endif
$(if $(KBUILD_OUTPUT),, \

View File

@ -322,7 +322,7 @@ archive-cmd = ( ( echo create $@ && \
echo end ) | $(AR) -M )
else
# Command "/bin/echo -e" cannot work on Apple Mac machines, so we use "/usr/bin/printf" instead
archive-cmd = ( /usr/bin/printf 'create $@\n\
archive-cmd = ( printf 'create $@\n\
addmod $(subst $(space),$(comma),$(strip $(filter-out %.a %.cpp,$(1))))\n\
$(foreach o,$(filter %.a,$(1)),addlib $o\n)save\nend' | $(AR) -M )
endif