Commit 4f4b31e0 authored by sof's avatar sof
Browse files

[project @ 1997-05-18 02:02:44 by sof]

.hs rules changed so that -recomp is given a chance to  kick in (don't remove .o)
parent 8e285281
......@@ -31,20 +31,18 @@ endif
# Haskell Suffix Rules
HASKELL_SPLIT_PRE= \
if [ ! -d $(basename $@) ]; then mkdir $(basename $@) ; else exit 0; fi; \
$(RM) $@ ; if [ ! -d $(basename $@) ]; then mkdir $(basename $@) ; else exit 0; fi; \
find $(basename $@) -name '*.$(way_)o' -print | xargs $(RM) __rm_food;
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)))
%.$(way_)o : %.hs
$(RM) $@
$(HASKELL_PRE_COMPILE)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HASKELL_POST_COMPILE)
%.$(way_)o : %.lhs
$(RM) $@
$(HASKELL_PRE_COMPILE)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HASKELL_POST_COMPILE)
......@@ -54,7 +52,6 @@ HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(H
$(HC) $(HC_OPTS) -C $< -o $@
%.$(way_)o : %.$(way_)hc
$(RM) $@
$(HASKELL_PRE_COMPILE)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
$(HASKELL_POST_COMPILE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment