[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $(EXEEXT) in TESTS required?

From: Ralf Wildenhues
Subject: Re: $(EXEEXT) in TESTS required?
Date: Tue, 24 Jan 2006 09:59:55 +0100
User-agent: Mutt/1.5.11

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
> 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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]