- do $(SCRIPT_SUBST) properly for shell scripts.
- don't bomb out if the rmdir fails when cleaning split_objs
directories.
#
# ToDo: make this work for shell scripts (drop the initial $).
#
#
# ToDo: make this work for shell scripts (drop the initial $).
#
+ifeq "$(INTERP)" "$(SHELL)"
+SCRIPT_SUBST=$(foreach val,$(SCRIPT_SUBST_VARS),"echo \"$(val)=\\\"$($(val))\\\";\" >> $@;")
+else
SCRIPT_SUBST=$(foreach val,$(SCRIPT_SUBST_VARS),"echo \"$$\"\"$(val)=\\\"$($(val))\\\";\" >> $@;")
SCRIPT_SUBST=$(foreach val,$(SCRIPT_SUBST_VARS),"echo \"$$\"\"$(val)=\\\"$($(val))\\\";\" >> $@;")
ifneq "$(filter -split-objs,$(HC_OPTS))" ""
clean ::
find $(patsubst %.$(way_)o,%,$(HS_OBJS)) -name '*.$(way_)o' -print | xargs $(RM) __rm_food
ifneq "$(filter -split-objs,$(HC_OPTS))" ""
clean ::
find $(patsubst %.$(way_)o,%,$(HS_OBJS)) -name '*.$(way_)o' -print | xargs $(RM) __rm_food
- rmdir $(patsubst %.$(way_)o,%,$(HS_OBJS))
+ -rmdir $(patsubst %.$(way_)o,%,$(HS_OBJS))