diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2020-05-31 18:33:00 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2020-05-31 18:35:08 -0400 |
commit | 7f92218b8a0c3b9232dbb37f6026bfeaf2346e7c (patch) | |
tree | c4f57e818accae6b02afc7d45057300b9935df8d /src | |
parent | 38be24228dcdde935e6090ac4d7f85ceea58d914 (diff) | |
download | postgresql-7f92218b8a0c3b9232dbb37f6026bfeaf2346e7c.tar.gz postgresql-7f92218b8a0c3b9232dbb37f6026bfeaf2346e7c.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/GNUmakefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index a24cfd4e016..d94ca56b27b 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 |