From 1e264b6e9431a200c0cf3f0432df4062ffaae20d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 19 Aug 2014 08:16:37 +1000 Subject: [PATCH] test: override check-local instead of check Signed-off-by: Peter Hutterer --- 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 -- 2.7.4