[PATCH libevdev 2/5] test: override check-local instead of check

Peter Hutterer peter.hutterer at who-t.net
Tue Aug 19 03:24:00 PDT 2014


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/Makefile.am | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index 1b65224..c027e8f 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -56,6 +56,8 @@ test_kernel_SOURCES = \
 test_kernel_CFLAGS = -I$(top_srcdir)
 test_kernel_LDADD = $(CHECK_LIBS)
 
+check_local_deps =
+
 if HAVE_VALGRIND
 VALGRIND_FLAGS=--leak-check=full \
 		--quiet \
@@ -65,7 +67,7 @@ VALGRIND_FLAGS=--leak-check=full \
 valgrind:
 	        $(MAKE) check-TESTS LOG_COMPILER="$(VALGRIND)" LOG_FLAGS="$(VALGRIND_FLAGS)"
 
-check: valgrind
+check_local_deps += valgrind
 
 endif
 
@@ -96,7 +98,7 @@ gcov-report.txt: gcov-clean check-TESTS
 gcov: gcov-report.txt
 	@cat gcov-report.txt
 
-check-local: gcov
+check_local_deps += gcov
 
 else
 
@@ -116,4 +118,6 @@ endif
 clean-local: gcov-clean
 	rm -f *.gcno *.gcda
 
+check-local: $(check_local_deps)
+
 endif
-- 
1.9.3



More information about the Input-tools mailing list