X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fsuffix.mk;h=26a4488543690479865e5ec38daf40c5fe1ea4c3;hb=17817756fd8d6797e35cbae35862f572e5684efc;hp=3f85bd2f7755ad36db4eb87825cebd411338983f;hpb=24cc04d1f060d9efe02dd22631cf1848280cfb6d;p=ghc-hetmet.git diff --git a/mk/suffix.mk b/mk/suffix.mk index 3f85bd2..26a4488 100644 --- a/mk/suffix.mk +++ b/mk/suffix.mk @@ -30,6 +30,11 @@ endif #----------------------------------------------------------------------------- # Haskell Suffix Rules +# Turn off all the Haskell suffix rules if we're booting from .hc +# files. The file bootstrap.mk contains alternative suffix rules in +# this case. +ifneq "$(BootingFromHc)" "YES" + %.$(way_)o : %.hs $(HC_PRE_OPTS) $(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@)) @@ -91,6 +96,8 @@ endif else exit 0 ; \ fi +endif # BootingViaC + #----------------------------------------------------------------------------- # Happy Suffix Rules # @@ -99,6 +106,17 @@ endif %.hs : %.ly $(HAPPY) $(HAPPY_OPTS) $< +%.hs : %.y + $(HAPPY) $(HAPPY_OPTS) $< + +#----------------------------------------------------------------------------- +# hsc2hs Suffix Rules +# +ifneq "$(BootingFromHc)" "YES" +%_hsc.c %_hsc.h %.hs : %.hsc + $(HSC2HS) $< +endif + #----------------------------------------------------------------------------- # Lx Suffix Rules # @@ -205,6 +223,9 @@ endif %.html : %.sgml @$(RM) $@ +# $(PERL) $(COLLATEINDEX) -N -o index.sgml +# $(JADE) -t sgml -V html-index -d $(SGMLSTYLESHEET) -c $(DOCBOOK_CATALOG) $< +# $(PERL) $(COLLATEINDEX) -N -o index.sgml $(SGML2HTML) $(SGML2HTML_OPTS) $< %.html : %.tex @@ -218,6 +239,10 @@ endif @$(RM) $@ $(SGML2RTF) $(SGML2RTF_OPTS) $< +%.pdf : %.sgml + @$(RM) $@ + $(SGML2PDF) $(SGML2PDF_OPTS) $< + #----------------------------------------------------------------------------- # Literate suffix rules