Tom Tromey wrote:

>     if FOO
>     var = a b
>     endif
>     derived = $(var:%=%.c)
>     if BAR
>     var = c d
>     endif

Isn't the order irrelevant here since derived won't be evaluated until
it's used?

Um, the gmake manual calls this "expanded when read, except for the shell
commands in rules, the right-hand sides of variable definitions using
`=', and the bodies of variable definitions using the `define'
directive".

Derek
--
Derek Price                      CVS Solutions Architect (
http://CVSHome.org )
mailto:[EMAIL PROTECTED]     OpenAvenue ( http://OpenAvenue.com )
--
Before you criticize someone, walk a mile in his shoes.  That way, if
he gets angry, he'll be a mile away - and barefoot.


Reply via email to