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.
This commit is contained in:
Peter Eisentraut 2009-02-19 10:32:30 +00:00
parent b870f8008d
commit 6becfa280c
1 changed files with 4 additions and 1 deletions

View 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 $<