From: Michael Biebl Date: Tue, 14 Feb 2017 04:38:51 +0000 (+0100) Subject: build-sys: fix "make install-tests" when srcdir != builddir X-Git-Tag: v233~82^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28d6adfcbd1d532e233d3da197cb4d819d1bdd8f;p=thirdparty%2Fsystemd.git build-sys: fix "make install-tests" when srcdir != builddir Follow-up for 4f8425b8d5a3fb2e5ec24b77f1a7a95db55f532c --- diff --git a/Makefile.am b/Makefile.am index 10839e922a1..dbd45754b20 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