aboutsummaryrefslogtreecommitdiff
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:33:00 -0400
commitaf4ea507c3d9217579a8d75fc17f4796a9bab0bb (patch)
treeec61d690bce56ea8a8746e666ee523eb992e220c /src
parent4cad2534da6d17067d98cf04be2dfc1bda8f2cd0 (diff)
downloadpostgresql-af4ea507c3d9217579a8d75fc17f4796a9bab0bb.tar.gz
postgresql-af4ea507c3d9217579a8d75fc17f4796a9bab0bb.zip
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 1a3164065fc..c830627b000 100644
--- a/src/test/regress/GNUmakefile
+++ b/src/test/regress/GNUmakefile
@@ -87,8 +87,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