X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fsuffix.mk;h=cb68ea160c156db6aebcb8b8ac9bf217ae2449d0;hb=9f201152779e7d931b016163e0abb3a81cf5a02e;hp=27a079eb6ed948a6c7469543889f6e6ec6dfe84c;hpb=c27f0b82e97b26db44a3b6b5dcf0bb79d1951b57;p=ghc-hetmet.git diff --git a/mk/suffix.mk b/mk/suffix.mk index 27a079e..cb68ea1 100644 --- a/mk/suffix.mk +++ b/mk/suffix.mk @@ -51,6 +51,10 @@ HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(H $(RM) $@ $(HC) $(HC_OPTS) -C $< -o $@ +%.$(way_)hc : %.hs + $(RM) $@ + $(HC) $(HC_OPTS) -C $< -o $@ + %.$(way_)o : %.$(way_)hc $(HASKELL_PRE_COMPILE) $(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@)) @@ -100,6 +104,13 @@ HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(H $(LX) $(LX_OPTS) $< #----------------------------------------------------------------------------- +# Green-card Suffix Rules +# + +%.hs : %.gc + $(GREENCARD) $(GREENCARD_OPTS) $< + +#----------------------------------------------------------------------------- # C-related suffix rules %.$(way_)o : %.$(way_)s @@ -181,7 +192,7 @@ HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(H %.txt : %.lit @$(RM) $@ - $(LIT2TEXT) -c $(LIT2TEXT_OPTS) -o $@ $< + $(LIT2TEXT) $(LIT2TEXT_OPTS) -o $@ $< @chmod 444 $@ %.ihtml : %.lit