[project @ 2001-10-23 14:35:12 by rrt]
[ghc-hetmet.git] / mk / suffix.mk
index cdc22c6..60308b3 100644 (file)
@@ -228,6 +228,8 @@ endif
 #      $(JADE) -t sgml -V html-index -d $(SGMLSTYLESHEET) -c $(DOCBOOK_CATALOG) $<
 #      $(PERL) $(COLLATEINDEX) -N -o index.sgml
        $(SGML2HTML) $(SGML2HTML_OPTS) $<
+# touch the .html file so that it is seen to be built
+       @touch $@
 
 %.html : %.tex
        @$(RM) $@
@@ -271,3 +273,10 @@ endif
 %.$(way_)o : %.$(way_)rc
        @$(RM) $@
        windres $< $@
+
+#-----------------------------------------------------------------------------
+# Preprocessor suffix rule
+
+% : %.pp
+       rm -f $@
+       $(CPP) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@