summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2020-05-31 18:33:00 -0400
committerAndrew Dunstan <andrew@dunslane.net>2020-05-31 18:35:31 -0400
commitcb9795eb2e17a49825146bafb7c409a1c1573298 (patch)
treeda9c1c5d7cdddc0f508993a8789fa8056e96bb93 /src
parent43d3d73189fd7ee877a65d810a98c1022ba368b7 (diff)
Make install-tests target work with vpath builds
Also add a top-level install-tests target. Backpatch to all live branches. Craig Ringer, tweaked by me.
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
index 3ab5d7c7232..a34889cd2a7 100644
--- a/src/test/regress/GNUmakefile
+++ b/src/test/regress/GNUmakefile
@@ -85,8 +85,8 @@ regress_data_files = \
install-tests: all install install-lib installdirs-tests
$(MAKE) -C $(top_builddir)/contrib/spi install
- for file in $(regress_data_files); do \
- $(INSTALL_DATA) $$file '$(DESTDIR)$(pkglibdir)/regress/'$$file || exit; \
+ for file in $(subst $(srcdir)/,,$(regress_data_files)); do \
+ $(INSTALL_DATA) $(srcdir)/$$file '$(DESTDIR)$(pkglibdir)/regress/'$$file || exit; \
done
installdirs-tests: installdirs