Skip to content

Commit af4ea50

Browse files
committed
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.
1 parent 4cad253 commit af4ea50

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

GNUmakefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,c
7272
$(call recurse,checkprep, src/test src/pl src/interfaces/ecpg contrib src/bin)
7373

7474
$(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib src/bin,installcheck)
75+
$(call recurse,install-tests,src/test/regress,install-tests)
7576

7677
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
7778
./config.status $@

src/test/regress/GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ regress_data_files = \
8787

8888
install-tests: all install install-lib installdirs-tests
8989
$(MAKE) -C $(top_builddir)/contrib/spi install
90-
for file in $(regress_data_files); do \
91-
$(INSTALL_DATA) $$file '$(DESTDIR)$(pkglibdir)/regress/'$$file || exit; \
90+
for file in $(subst $(srcdir)/,,$(regress_data_files)); do \
91+
$(INSTALL_DATA) $(srcdir)/$$file '$(DESTDIR)$(pkglibdir)/regress/'$$file || exit; \
9292
done
9393

9494
installdirs-tests: installdirs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy