From: sof Date: Wed, 3 Sep 1997 23:17:33 +0000 (+0000) Subject: [project @ 1997-09-03 23:17:33 by sof] X-Git-Tag: Approximately_1000_patches_recorded~75 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4b98b6ad61a5465ea97cc482f2475e89996b945a;p=ghc-hetmet.git [project @ 1997-09-03 23:17:33 by sof] fix: cleaning out split dirs pre re-make did not work --- diff --git a/mk/suffix.mk b/mk/suffix.mk index cb68ea1..41b140d 100644 --- a/mk/suffix.mk +++ b/mk/suffix.mk @@ -31,8 +31,8 @@ endif # Haskell Suffix Rules HASKELL_SPLIT_PRE= \ - $(RM) $@ ; if [ ! -d $(basename $@) ]; then mkdir $(basename $@) ; else exit 0; fi; \ - find $(basename $@) -name '*.$(way_)o' -print | xargs $(RM) __rm_food; + $(RM) $@ ; if [ ! -d $(basename $@) ]; then mkdir $(basename $@); else \ + find $(basename $@) -name '*.$(way_)o' -print | xargs $(RM) __rm_food ; fi HASKELL_SPLIT_POST= touch $@ HASKELL_PRE_COMPILE=$(patsubst %,$(HASKELL_SPLIT_PRE),$(filter -split-objs,$(HC_OPTS))) HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(HC_OPTS))) @@ -150,10 +150,11 @@ HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(H %.hs : %.runtest $(TIME) $(RUNTEST) $(HC) $(RUNTEST_FLAGS) -o2 $*.stderr $< - #----------------------------------------------------------------------------- # Doc processing suffix rules - +# +# ToDo: make these more robust +# %.dvi : %.tex @$(RM) $@ $(LTX) $<