Skip to content
Snippets Groups Projects
Commit d66b31c9 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

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.
parent 5ece8eca
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ pg_regress$(X): pg_regress.o pg_regress_main.o | submake-libpgport ...@@ -48,7 +48,7 @@ pg_regress$(X): pg_regress.o pg_regress_main.o | submake-libpgport
# dependencies ensure that path changes propagate # dependencies ensure that path changes propagate
pg_regress.o: pg_regress.c $(top_builddir)/src/port/pg_config_paths.h 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 $(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global
$(MAKE) -C $(top_builddir)/src/port pg_config_paths.h $(MAKE) -C $(top_builddir)/src/port pg_config_paths.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment