[project @ 2001-08-21 10:00:22 by simonpj]
[ghc-hetmet.git] / mk / suffix.mk
index cdc22c6..fbf8d3d 100644 (file)
@@ -271,3 +271,10 @@ endif
 %.$(way_)o : %.$(way_)rc
        @$(RM) $@
        windres $< $@
+
+#-----------------------------------------------------------------------------
+# Preprocessor suffix rule
+
+% : %.pp
+       rm -f $@
+       $(CPP) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@