summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-08-28 17:26:09 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-08-28 17:26:09 -0400
commit42e61c7748eb36b75a05bd0a9a35c370c70a86c8 (patch)
tree3b749b9aaaa62fef3144d7c9510c988ba43c72ca
parentbf2d0462cd735f76bcf6eb8b399723674b2221ef (diff)
Include contrib modules in the temp installation even without REGRESS.
Now that we have TAP tests, a contrib module may have something useful to do in "make check" even if it has no pg_regress-style regression scripts, and hence no REGRESS setting. But the TAP tests will fail, or else test the wrong installed files, unless we install the contrib module into the temp installation. So move the bit about adding to EXTRA_INSTALL so that it applies regardless. We might want this in back branches in future, but for the moment I only risked adding it to v11. Discussion: https://postgr.es/m/12438.1535488750@sss.pgh.pa.us
-rw-r--r--src/makefiles/pgxs.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk
index 158581b3f50..8deb356958a 100644
--- a/src/makefiles/pgxs.mk
+++ b/src/makefiles/pgxs.mk
@@ -359,10 +359,12 @@ check:
else
check: submake $(REGRESS_PREP)
$(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
+endif
+endif # REGRESS
+ifndef NO_TEMP_INSTALL
temp-install: EXTRA_INSTALL+=$(subdir)
endif
-endif # REGRESS
# STANDARD RULES