From f82210f345531325d3f7200197af6a12f4cd8ab5 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 27 Jul 2012 16:33:08 +0200 Subject: [PATCH] [ng] check: use few more GNU make capabilities 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 --- lib/am/parallel-tests.am | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/am/parallel-tests.am b/lib/am/parallel-tests.am index 6bad73671..bb4ce6463 100644 --- a/lib/am/parallel-tests.am +++ b/lib/am/parallel-tests.am @@ -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 -- 2.47.2