From: Peter Hutterer Date: Mon, 18 Aug 2014 22:16:37 +0000 (+1000) Subject: test: override check-local instead of check X-Git-Tag: libevdev-1.2.99.902~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e264b6e9431a200c0cf3f0432df4062ffaae20d;p=platform%2Fupstream%2Flibevdev.git test: override check-local instead of check Signed-off-by: Peter Hutterer --- 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