Make runscript_if_exists() more Windows friendly
This commit is contained in:
parent
6c56c4bf14
commit
19334b8cf5
2 changed files with 2 additions and 2 deletions
|
@ -1110,7 +1110,7 @@ $(OBJDIR): pre-build
|
|||
$(MKDIR) $(OBJDIR)
|
||||
|
||||
pre-build:
|
||||
$(call runscript_if_exists,$(PRE_BUILD_HOOK))
|
||||
$(call runscript_if_exists,$(CURDIR)/$(PRE_BUILD_HOOK))
|
||||
|
||||
$(TARGET_ELF): $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS) -lc -lm
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
dir_if_exists = $(if $(wildcard $(1)$(2)),$(1))
|
||||
|
||||
# Run a shell script if it exists.
|
||||
runscript_if_exists = $(if $(wildcard $(1)), $(shell sh $(1)))
|
||||
runscript_if_exists = $(if $(wildcard $(1)), $(shell $(1)))
|
||||
|
||||
# For message printing: pad the right side of the first argument with spaces to
|
||||
# the number of bytes indicated by the second argument.
|
||||
|
|
Loading…
Reference in a new issue