Merge pull request #53 from MultiBuds/mkfile-use-shell-builtins
fix(makefile): Use shell-builtins in Makefile
This commit is contained in:
commit
172eb15036
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -228,7 +228,7 @@ KBUILD_OUTPUT := $(shell ( if not exist $(KBUILD_OUTPUT)\ mkdir $(KBUILD_OUTPUT)
|
||||||
KBUILD_OUTPUT := $(subst \,/,$(KBUILD_OUTPUT))
|
KBUILD_OUTPUT := $(subst \,/,$(KBUILD_OUTPUT))
|
||||||
else
|
else
|
||||||
KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
|
KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
|
||||||
&& /bin/pwd)
|
&& pwd)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(if $(KBUILD_OUTPUT),, \
|
$(if $(KBUILD_OUTPUT),, \
|
||||||
|
|
|
@ -322,7 +322,7 @@ archive-cmd = ( ( echo create $@ && \
|
||||||
echo end ) | $(AR) -M )
|
echo end ) | $(AR) -M )
|
||||||
else
|
else
|
||||||
# Command "/bin/echo -e" cannot work on Apple Mac machines, so we use "/usr/bin/printf" instead
|
# 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\
|
addmod $(subst $(space),$(comma),$(strip $(filter-out %.a %.cpp,$(1))))\n\
|
||||||
$(foreach o,$(filter %.a,$(1)),addlib $o\n)save\nend' | $(AR) -M )
|
$(foreach o,$(filter %.a,$(1)),addlib $o\n)save\nend' | $(AR) -M )
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue