Hi Bruno, * Bruno Haible wrote on Mon, Jan 23, 2006 at 09:51:57PM CET: > > ... > noinst_PROGRAMS = > check_PROGRAMS = test-lock$(EXEEXT) > > TESTS = test-lock > > check-am: all-am > $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) > $(MAKE) $(AM_MAKEFLAGS) check-TESTS > > check-TESTS: $(TESTS) > @failed=0; all=0; xfail=0; xpass=0; skip=0; \ > ... > > What you see is: > 1) $(TESTS) occurs as a dependency in a target. > 2) automake has rewritten the check_PROGRAMS variable. > > > From 1) I conclude that the TESTS variable cannot contain shell escapes > like backquoted commands, > `show-all-tests` > since they wouldn't work as target dependencies anyway.
What about @substituted@ values? > Therefore automake can indeed add a variable am_TESTS_DEPENDENCIES > that is constructed from TESTS by adding $(EXEEXT) to all elements that > also occur in the original value of check_PROGRAMS (and maybe also > noinst_PROGRAMS - why not?). Then change *snip* > From 2) I conclude that it would even be acceptable to change the TESTS > variable itself, to assume the contents of am_TESTS_DEPENDENCIES. If I see correctly that would allow Automake to kill this line completely (were it not for my question above): > $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) Cheers, Ralf _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib