Skip to content
Snippets Groups Projects
Commit b43b9385 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1997-10-07 15:14:04 by simonm]

- do $(SCRIPT_SUBST) properly for shell scripts.
- don't bomb out if the rmdir fails when cleaning split_objs
directories.
parent 1718e295
No related merge requests found
......@@ -374,7 +374,11 @@ ifneq "$(SCRIPT_PROG)" ""
#
# 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))\\\";\" >> $@;")
endif
all :: $(SCRIPT_PROG)
......@@ -911,7 +915,7 @@ ifneq "$(HS_OBJS)" ""
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))
endif
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment