Add an implicit rule %.c -> %.i for running the C preprocessor.
authorPeter Eisentraut <[email protected]>
Thu, 19 Feb 2009 10:32:30 +0000 (10:32 +0000)
committerPeter Eisentraut <[email protected]>
Thu, 19 Feb 2009 10:32:30 +0000 (10:32 +0000)
I occasionally use this for debugging, and it seems wasteful to have to
reinvent this all the time.

src/Makefile.global.in

index ff27dd903d510e00645ae7c9d493d48fd2e9c4b8..829ce7218df923fc92a0b7f2389e8b5347ea7ade 100644 (file)
@@ -468,6 +468,9 @@ TAS         = @TAS@
 #
 # Global targets and rules
 
+%.i: %.c
+       $(CPP) $(CPPFLAGS) -o $@ $<
+
 %.gz: %
        $(GZIP) -f --best $<