OSDN Git Service

Add an implicit rule %.c -> %.i for running the C preprocessor.
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 19 Feb 2009 10:32:30 +0000 (10:32 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
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 1032549..1facf7c 100644 (file)
@@ -1,5 +1,5 @@
 # -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.252 2009/01/22 22:27:13 petere Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.253 2009/02/19 10:32:30 petere Exp $
 
 #------------------------------------------------------------------------------
 # All PostgreSQL makefiles include this file and use the variables it sets,
@@ -468,6 +468,9 @@ TAS         = @TAS@
 #
 # Global targets and rules
 
+%.i: %.c
+       $(CPP) $(CPPFLAGS) -o $@ $<
+
 %.gz: %
        $(GZIP) -f --best $<