mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
Fix make headerscheck
In the wake of commitsdac048f71
andecaf7c5df
, `make headerscheck` no longer generated all headers that are included by other headers, causing headerscheck/cpluspluscheck to fail. To fix, backpatch enough makefile rules from721856ff2
to generate all required headers. Reported by Marina Polyakova Backpatch to version 16 only, as the issue is not present on master Discussion: https://postgr.es/m/231ea1127719b2b3d6d1c05f75808981%40postgrespro.ru
This commit is contained in:
@@ -160,7 +160,7 @@ submake-utils-headers:
|
|||||||
|
|
||||||
.PHONY: generated-headers
|
.PHONY: generated-headers
|
||||||
|
|
||||||
generated-headers: $(top_builddir)/src/include/storage/lwlocknames.h submake-catalog-headers submake-nodes-headers submake-utils-headers
|
generated-headers: $(top_builddir)/src/include/storage/lwlocknames.h submake-catalog-headers submake-nodes-headers submake-utils-headers parser/gram.h
|
||||||
|
|
||||||
$(top_builddir)/src/include/storage/lwlocknames.h: storage/lmgr/lwlocknames.h
|
$(top_builddir)/src/include/storage/lwlocknames.h: storage/lmgr/lwlocknames.h
|
||||||
prereqdir=`cd '$(dir $<)' >/dev/null && pwd` && \
|
prereqdir=`cd '$(dir $<)' >/dev/null && pwd` && \
|
||||||
|
@@ -38,9 +38,12 @@ all: distprep probes.h generated-header-symlinks
|
|||||||
|
|
||||||
distprep: fmgr-stamp errcodes.h
|
distprep: fmgr-stamp errcodes.h
|
||||||
|
|
||||||
.PHONY: generated-header-symlinks
|
.PHONY: generated-header-symlinks submake-adt-headers
|
||||||
|
|
||||||
generated-header-symlinks: $(top_builddir)/src/include/utils/header-stamp $(top_builddir)/src/include/utils/probes.h
|
generated-header-symlinks: $(top_builddir)/src/include/utils/header-stamp $(top_builddir)/src/include/utils/probes.h submake-adt-headers
|
||||||
|
|
||||||
|
submake-adt-headers:
|
||||||
|
$(MAKE) -C adt jsonpath_gram.h
|
||||||
|
|
||||||
$(SUBDIRS:%=%-recursive): fmgr-stamp errcodes.h
|
$(SUBDIRS:%=%-recursive): fmgr-stamp errcodes.h
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user