From: Stefano Lattarini Date: Fri, 27 Jul 2012 16:44:05 +0000 (+0200) Subject: [ng] refactor: read 'serial-tests.am' more verbatim X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef0f88c18fe02f70aea0484a911531f61ecfa922;p=thirdparty%2Fautomake.git [ng] refactor: read 'serial-tests.am' more verbatim * lib/am/serial-tests.am: Adjust to use the "ifeq" built-in and the internal variable '$(am.conf.handle-exeext)' instead of the transform '%?HANDLE-EXEEXT%'. * automake.in (handle_tests): Use '&almost_verbatim' rather than '&file_contents' to read and process 'serial-tests.am'. Signed-off-by: Stefano Lattarini --- diff --git a/automake.in b/automake.in index f96f21ce6..4799dd690 100644 --- a/automake.in +++ b/automake.in @@ -4105,9 +4105,7 @@ sub handle_tests $output_rules .= file_contents ('color-tests', new Automake::Location); if (option 'serial-tests') { - $output_rules .= - file_contents ('serial-tests', new Automake::Location, - CHECK_DEPS => "@check"); + almost_verbatim ('serial-tests'); } else { diff --git a/lib/am/serial-tests.am b/lib/am/serial-tests.am index 4a27fcad0..592a796a1 100644 --- a/lib/am/serial-tests.am +++ b/lib/am/serial-tests.am @@ -16,15 +16,15 @@ ## Obsolescent serial testsuite driver. -if %?HANDLE-EXEEXT% +ifeq ($(am.conf.handle-exeext),yes) ## This is suboptimal, but we need to preserve the order of $(TESTS). am__check_cook_with_exeext_1 = \ $(if $(filter $(am.all-progs), $1), $1$(EXEEXT), $1) am__check_cook_with_exeext = $(strip \ $(if $(EXEEXT), $(foreach t, $1, $(call $(0)_1, $t)), $1)) -else !%?HANDLE-EXEEXT% +else am__check_cook_with_exeext = $(strip $1) -endif !%?HANDLE-EXEEXT% +endif # TESTS can contain compiled programs, in which case we might have # to account for $(EXEEXT) appending. For matching purposes, we