Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6becfa2

Browse files
committed
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.
1 parent b870f80 commit 6becfa2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Makefile.global.in

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.252 2009/01/22 22:27:13 petere Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.253 2009/02/19 10:32:30 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -468,6 +468,9 @@ TAS = @TAS@
468468
#
469469
# Global targets and rules
470470

471+
%.i: %.c
472+
$(CPP) $(CPPFLAGS) -o $@ $<
473+
471474
%.gz: %
472475
$(GZIP) -f --best $<
473476

0 commit comments

Comments
 (0)