From b9f152d25a11e535975df971e536a2e27386179a Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 31 May 2020 18:33:00 -0400 Subject: 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. --- src/test/regress/GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index 587de56fb90..332d0b833f9 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 -- cgit v1.2.3