]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
build: simplify our top-level "recheck" target
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 18 Jan 2012 13:15:03 +0000 (14:15 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 18 Jan 2012 13:15:03 +0000 (14:15 +0100)
* Makefile.am (recheck): Now that all the test scripts are in
the 'tests/' directory, its recipe can be greatly simplified,
as we don't need to deal with recursion in multiple subdirectories
anymore.

Makefile.am

index c66ca91876531b9a76fc80a5d0a76aff59dbfe4d..fc37ef1066ff8f7d4e1451e649338dfa9d4e6d7b 100644 (file)
@@ -105,21 +105,10 @@ INSTALL: lib/INSTALL
 installcheck-local:
        am_running_installcheck=yes $(MAKE) $(AM_MAKEFLAGS) check
 
-## recheck: convenience proxy target for the test suites.
-.PHONY: recheck
+# Convenience proxy target for the test suites.
 recheck:
-       @failcom='exit 1'; \
-       for f in x $$MAKEFLAGS; do \
-         case $$f in \
-           *=* | --[!k]*);; \
-           *k*) failcom='fail=yes';; \
-         esac; \
-       done; \
-       for subdir in $(TEST_SUBDIRS); do \
-         ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@) \
-           || eval $$failcom; \
-       done; \
-       test -z "$$fail"
+       $(am__cd) tests && $(MAKE) $(AM_MAKEFLAGS) $@
+.PHONY: recheck
 
 ################################################################
 ##