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-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=a2778f699f016fd99bc1686a73ad2f707cd96187;p=users%2Fsimon%2Fpostgres.git 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 ff27dd903d..829ce7218d 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -468,6 +468,9 @@ TAS = @TAS@ # # Global targets and rules +%.i: %.c + $(CPP) $(CPPFLAGS) -o $@ $< + %.gz: % $(GZIP) -f --best $<