build: Update valgrind.mk to match automake-generated ‘check’ rule
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 2 Jan 2013 16:01:18 +0000 (16:01 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Wed, 2 Jan 2013 16:01:18 +0000 (16:01 +0000)
The dependencies and chained rule were wrong. Not that it seems to
make much difference.

valgrind.mk

index 5e365bb..e1a0a7f 100644 (file)
@@ -1,8 +1,8 @@
-check: $(TESTS)
+check: $(BUILT_SOURCES)
        if test -n "$$FOLKS_TEST_VALGRIND"; then \
                G_DEBUG=${G_DEBUG:+"${G_DEBUG},"}gc-friendly; \
                G_SLICE=${G_SLICE},always-malloc; \
-               $(MAKE) \
+               $(MAKE) $(AM_MAKEFLAGS) \
                        TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) \
                        libtool --mode=execute valgrind \
                                        --leak-check=full \
@@ -11,8 +11,8 @@ check: $(TESTS)
                                        --num-callers=20 \
                                        --error-exitcode=0 \
                                        --log-file=valgrind.log.%p" \
-                       check-TESTS; \
+                       check-am; \
        else \
-               $(MAKE) check-TESTS; \
+               $(MAKE) $(AM_MAKEFLAGS) check-am; \
        fi