[project @ 2001-08-04 06:19:54 by ken]
[ghc-hetmet.git] / mk / suffix.mk
index cdc22c6..8ec5acb 100644 (file)
@@ -271,3 +271,10 @@ endif
 %.$(way_)o : %.$(way_)rc
        @$(RM) $@
        windres $< $@
+
+#-----------------------------------------------------------------------------
+# Preprocessor suffix rule
+
+% : %.pp
+       rm -f $@
+       $(CPP) -I$(GHC_INCLUDE_DIR) -x c $< | $(SED) -e '/^#/d' > $@