]> granicus.if.org Git - postgresql/commit
Allow extensions to install built as well as unbuilt headers.
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Wed, 5 Sep 2018 21:01:21 +0000 (22:01 +0100)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Wed, 5 Sep 2018 21:38:19 +0000 (22:38 +0100)
commit235526a20a2efb199c4138c5d793260ce37d7231
tree885aa0f6677e4f9e48e49f77330b14a5fbb15d23
parentc1ea31147248842743c3ba931f71b5a4a218cb58
Allow extensions to install built as well as unbuilt headers.

Commit df163230b overlooked the case that an out-of-tree extension
might need to build its header files (e.g. via ./configure). If it is
also doing a VPATH build, the HEADERS_* rules in the original commit
would then fail to find the files, since they would be looking only
under $(srcdir) and not in the build directory.

Fix by adding HEADERS_built and HEADERS_built_$(MODULE) which behave
like DATA_built in that they look in the build dir rather than the
source dir (and also make the files dependencies of the "all" target).

No Windows support appears to be needed for this, since it is only
relevant to out-of-tree builds (no support exists in Mkvcbuild.pm to
build extension header files in any case).
doc/src/sgml/extend.sgml
src/makefiles/pgxs.mk