[project @ 2001-03-23 16:36:20 by simonmar]
[ghc-hetmet.git] / mk / suffix.mk
index e954345..5f67ad6 100644 (file)
@@ -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
 #
@@ -214,6 +221,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