[project @ 2001-05-07 16:18:49 by sof]
[ghc-hetmet.git] / mk / suffix.mk
index 94b0456..26a4488 100644 (file)
@@ -112,8 +112,10 @@ endif # BootingViaC
 #-----------------------------------------------------------------------------
 # hsc2hs Suffix Rules
 #
-Hs%.c Hs%.h %.hs : %.hsc
+ifneq "$(BootingFromHc)" "YES"
+%_hsc.c %_hsc.h %.hs : %.hsc
        $(HSC2HS) $<
+endif
 
 #-----------------------------------------------------------------------------
 # Lx Suffix Rules
@@ -237,6 +239,10 @@ Hs%.c Hs%.h %.hs : %.hsc
        @$(RM) $@
        $(SGML2RTF) $(SGML2RTF_OPTS) $<
 
+%.pdf : %.sgml
+       @$(RM) $@
+       $(SGML2PDF) $(SGML2PDF_OPTS) $<
+
 #-----------------------------------------------------------------------------
 # Literate suffix rules