[project @ 2004-01-09 12:36:54 by simonmar]
authorsimonmar <unknown>
Fri, 9 Jan 2004 12:36:54 +0000 (12:36 +0000)
committersimonmar <unknown>
Fri, 9 Jan 2004 12:36:54 +0000 (12:36 +0000)
ooh, I didn't know about gcc's -P option.  Use it instead of hacky sed
script in .pp suffix rule.

mk/suffix.mk

index fd3b6c4..4da8fa9 100644 (file)
@@ -335,4 +335,4 @@ endif
 
 % : %.pp
        @$(RM) $@
-       $(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#[^i]/d' > $@
+       $(CPP) $(RAWCPP_FLAGS) -P $(CPP_OPTS) -x c $< > $@