From: Peter Eisentraut Date: Thu, 19 Feb 2009 10:32:30 +0000 (+0000) Subject: Add an implicit rule %.c -> %.i for running the C preprocessor. X-Git-Tag: REL8_4_BETA1~249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6becfa280cddc5156a49efbe35db541839f927fb;p=postgresql Add an implicit rule %.c -> %.i for running the C preprocessor. I occasionally use this for debugging, and it seems wasteful to have to reinvent this all the time. --- diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 10325498f9..1facf7c315 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -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 $<