From 110df929fc42906b2f13729d1cf0b06b4753ce6d Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 2 Aug 2008 13:22:32 +0200 Subject: tests: fix build-aux/check.mk for non-GNU make * build-aux/check.mk ($(TEST_LOGS)) [!GNU_MAKE]: Check for a $(TESTS) test in the build dir, before one in srcdir. For details, see . --- build-aux/check.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-aux/check.mk b/build-aux/check.mk index f26696d4b..92935d9a3 100644 --- a/build-aux/check.mk +++ b/build-aux/check.mk @@ -159,8 +159,9 @@ CHECK-FORCE: DEPENDENCY = CHECK-FORCE $(TEST_LOGS): $(DEPENDENCY) @if test '$(DEPENDENCY)' = CHECK-FORCE; then \ - dst=$@; \ - exec $(MAKE) $(AM_MAKEFLAGS) DEPENDENCY='$(srcdir)'/$${dst%.log} $@;\ + dst=$@; src=$${dst%.log}; \ + test -x "$$src" || src='$(srcdir)'/$$src; \ + exec $(MAKE) $(AM_MAKEFLAGS) DEPENDENCY="$$src" $@; \ else \ src='$(DEPENDENCY)'; \ $(am__check_pre) "$$dir$$src" $(am__check_post); \ -- cgit v1.2.3-70-g09d2