From 7b6b167fa3bd2f968ad885ca7b024be4122a85f1 Mon Sep 17 00:00:00 2001 From: Andrew Gierth Date: Fri, 7 Sep 2018 13:51:30 +0100 Subject: Refactor installation of extension headers. Commit be54b3777 failed on gmake 3.80 due to a chained conditional, which on closer examination could be removed entirely with some refactoring elsewhere for a net simplification and more robustness against empty expansions. Along the way, add some more comments. Also make explicit in the documentation and comments that built headers are not removed by 'make clean', since we don't typically want that for headers generated by a separate ./configure step, and it's much easier to add your own 'distclean' rule or use EXTRA_CLEAN than to try and override a deletion rule in pgxs.mk. Per buildfarm member prariedog and comments by Michael Paquier, though all the actual changes are my fault. --- doc/src/sgml/extend.sgml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index 1b1adae1a63..695e07fb384 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -1227,8 +1227,13 @@ include $(PGXS) HEADERS_built - files to (optionally build and) install under - prefix/include/server/$MODULEDIR/$MODULE_big + Files to (optionally build and) install under + prefix/include/server/$MODULEDIR/$MODULE_big. + + + Unlike DATA_built, files in HEADERS_built + are not removed by the clean target; if you want them removed, + also add them to EXTRA_CLEAN or add your own rules to do it. @@ -1243,6 +1248,11 @@ include $(PGXS) where $MODULE must be a module name used in MODULES or MODULE_big. + + Unlike DATA_built, files in HEADERS_built_$MODULE + are not removed by the clean target; if you want them removed, + also add them to EXTRA_CLEAN or add your own rules to do it. + It is legal to use both variables for the same module, or any combination, unless you have two module names in the -- cgit v1.2.3