]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] check: use few more GNU make capabilities
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jul 2012 14:33:08 +0000 (16:33 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jul 2012 15:09:10 +0000 (17:09 +0200)
We can do so now that the 'parallel-tests.am' file is now
processed "almost verbatim" by Automake.

* lib/am/parallel-tests.am (check-TESTS): Here, use "ifeq" to check
whether $(AM_LAZY_CHECK) is "yes".  This removes the need for ...
(am__remove_if_not_lazy_check): ... this variable, which has thus
been removed.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/parallel-tests.am

index 6bad736710e11b497e0e1078e7d6792d634ca738..bb4ce6463a3dd99cce5bcaeb037625e7cea40043 100644 (file)
@@ -421,12 +421,11 @@ am__mostlyclean_files += $(TEST_SUITE_LOG)
 ## Running all tests, or rechecking failures. ##
 ## ------------------------------------------ ##
 
-am__remove_if_not_lazy_check = \
-  $(if $(filter yes,$(AM_LAZY_CHECK)),,$(call am.clean-cmd.f,$1))
-
 check-TESTS:
-       @$(call am__remove_if_not_lazy_check,$(am.test-suite.test-results))
-       @$(call am__remove_if_not_lazy_check,$(am.test-suite.test-logs))
+ifneq ($(AM_LAZY_CHECK),yes)
+       @$(call am.clean-cmd.f, \
+               $(am.test-suite.test-results) $(am.test-suite.test-logs))
+endif
 ## We always have to remove TEST_SUITE_LOG, to ensure its rule is run
 ## in any case even in lazy mode: otherwise, if no test needs rerunning,
 ## or a prior run plus reruns all happen within the same timestamp (can