diff options
| author | Peter Eisentraut | 2012-02-07 20:42:19 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2012-02-07 20:42:19 +0000 |
| commit | d66b31c94faf2b8b8aac9d273c8cd1708a54887e (patch) | |
| tree | 39da91d0ff80ccdf68c91dc7938ddba048faf5b3 | |
| parent | 5ece8ecae88fd7fd8616429790bd70ca2ffad260 (diff) | |
pg_regress: Use target-specific variable instead of overriding make rule
Use a target-specific variable to add to CPPFLAGS instead of writing a
custom .c -> .o rule. This will ensure that dependency tracking is
used when enabled.
| -rw-r--r-- | src/test/regress/GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 27b86da3f84..0239b6ff70b 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -48,7 +48,7 @@ pg_regress$(X): pg_regress.o pg_regress_main.o | submake-libpgport # dependencies ensure that path changes propagate pg_regress.o: pg_regress.c $(top_builddir)/src/port/pg_config_paths.h - $(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_builddir)/src/port $(EXTRADEFS) -c -o $@ $< +pg_regress.o: override CPPFLAGS += -I$(top_builddir)/src/port $(EXTRADEFS) $(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global $(MAKE) -C $(top_builddir)/src/port pg_config_paths.h |
