summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-02-14 05:38:51 +0100
committerMartin Pitt <martin@piware.de>2017-02-16 21:36:30 +0100
commit28d6adfcbd1d532e233d3da197cb4d819d1bdd8f (patch)
treed2afc3c61d96effaf7aeaf0fbc224d3bbe0a732f /Makefile.am
parent8acdd72120728cfc1742d7c37ceac8c0ade28ee3 (diff)
build-sys: fix "make install-tests" when srcdir != builddir
Follow-up for 4f8425b8d5a3fb2e5ec24b77f1a7a95db55f532c
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 10839e922a..dbd45754b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6714,14 +6714,14 @@ tests += \
.PHONY: install-tests
install-tests: $(tests) $(TEST_DATA_FILES)
for f in $(tests); do \
- if [ -x .libs/$$f ]; then \
- install -D -m 755 .libs/$$f $(DESTDIR)/$(testsdir)/$$f; \
+ if [ -x $(top_builddir)/.libs/$$f ]; then \
+ install -D -m 755 $(top_builddir)/.libs/$$f $(DESTDIR)/$(testsdir)/$$f; \
else \
- install -D -m 755 $$f $(DESTDIR)/$(testsdir)/$$f; \
+ install -D -m 755 $(top_builddir)/$$f $(DESTDIR)/$(testsdir)/$$f; \
fi; \
done
for f in $(TEST_DATA_FILES); do \
- install -D -m 644 $$f $(DESTDIR)/$(testsdir)/testdata/$${f#test/}; \
+ install -D -m 644 $(top_srcdir)/$$f $(DESTDIR)/$(testsdir)/testdata/$${f#test/}; \
done