Skip to content

Commit b19a7e3

Browse files
committed
Correct Makefile dependencies for catalog scripts
At some point, Gen_fmgrtab.pl stopped needing the value of defined symbols from access/transam.h, while genbki.pl starting doing so. The Makefiles didn't get the memo, so update the relevant dependencies.
1 parent 1d084fb commit b19a7e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/catalog/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ generated-header-symlinks: $(top_builddir)/src/include/catalog/header-stamp
102102
# configure run, even in distribution tarballs. So depending on configure.ac
103103
# instead is cheating a bit, but it will achieve the goal of updating the
104104
# version number when it changes.
105-
bki-stamp: genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS) $(POSTGRES_BKI_DATA) $(top_srcdir)/configure.ac
105+
bki-stamp: genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS) $(POSTGRES_BKI_DATA) $(top_srcdir)/configure.ac $(top_srcdir)/src/include/access/transam.h
106106
$(PERL) $< --include-path=$(top_srcdir)/src/include/ \
107107
--set-version=$(MAJORVERSION) $(POSTGRES_BKI_SRCS)
108108
touch $@

src/backend/utils/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $(SUBDIRS:%=%-recursive): fmgr-stamp errcodes.h
4747
# fmgr-stamp records the last time we ran Gen_fmgrtab.pl. We don't rely on
4848
# the timestamps of the individual output files, because the Perl script
4949
# won't update them if they didn't change (to avoid unnecessary recompiles).
50-
fmgr-stamp: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.dat $(top_srcdir)/src/include/access/transam.h
50+
fmgr-stamp: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.dat
5151
$(PERL) -I $(catalogdir) $< --include-path=$(top_srcdir)/src/include/ $(top_srcdir)/src/include/catalog/pg_proc.dat
5252
touch $@
5353

0 commit comments

Comments
 (0)