[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix build-aux/check.mk for non-GNU make.
From: |
Ralf Wildenhues |
Subject: |
[PATCH] Fix build-aux/check.mk for non-GNU make. |
Date: |
Sat, 2 Aug 2008 13:22:32 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* build-aux/check.mk ($(TEST_LOGS)) [!GNU_MAKE]: Check for
a $(TESTS) test in the build dir, before one in srcdir.
---
In gnulib-tests, 'make check' causes non-GNU make to try to update and
execute $srcdir/test-EOVERFLOW:
$ pmake check
[...]
pmake check-TESTS
gcc -std=gnu99 -g -O2 -Wl,--as-needed -o
../../coreutils/gnulib-tests/test-EOVERFLOW
../../coreutils/gnulib-tests/test-EOVERFLOW.c
../../coreutils/gnulib-tests/test-EOVERFLOW.c:17:20: error: config.h: No such
file or directory
*** Error code 1
This patch fixes it.
Cheers,
Ralf
build-aux/check.mk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/build-aux/check.mk b/build-aux/check.mk
index f26696d..976f741 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); \
--
1.5.5.40.g4cdda
- [PATCH] Fix build-aux/check.mk for non-GNU make.,
Ralf Wildenhues <=