]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: fix "make install-tests" when srcdir != builddir
authorMichael Biebl <biebl@debian.org>
Tue, 14 Feb 2017 04:38:51 +0000 (05:38 +0100)
committerMartin Pitt <martin@piware.de>
Thu, 16 Feb 2017 20:36:30 +0000 (21:36 +0100)
Follow-up for 4f8425b8d5a3fb2e5ec24b77f1a7a95db55f532c

Makefile.am

index 10839e922a17b4e3603ce4ae6ef1e988deb2d2d7..dbd45754b202859e8a229e7424e9c546262b23a4 100644 (file)
@@ -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