Re: [PATCH] pattern-specific variable expansion

2004-04-21 Thread Paul D. Smith
> Yeah, I thought so too at the beginning. I had to read that bug report > about 10 times to understand what's going on there ;-(. My conclusion > is that things that are discussed in that bug report and my patch are > unrelated. OK, I'll check this change out. Thanks. -- -

Re: [PATCH] pattern-specific variable expansion

2004-04-19 Thread Boris Kolpackov
Paul D. Smith <[EMAIL PROTECTED]> writes: > bk> In contrast the patch fixes the following case: > > bk> a := A > > bk> %bar : a_ := $a > > bk> %bar :; @echo $(a_) > > bk> a := B > > bk> foobar: > > bk> Which prints (without patch) B. > > I want to point out that I think we

Re: [PATCH] pattern-specific variable expansion

2004-04-19 Thread Paul D. Smith
%% Boris Kolpackov <[EMAIL PROTECTED]> writes: bk> In contrast the patch fixes the following case: bk> a := A bk> %bar : a_ := $a bk> %bar :; @echo $(a_) bk> a := B bk> foobar: bk> Which prints (without patch) B. I want to point out that I think we already discussed this bef

Re: [PATCH] pattern-specific variable expansion

2004-04-19 Thread Noel Yap
Paul D. Smith wrote: %% Noel Yap <[EMAIL PROTECTED]> writes: ny> Hmmm, I ran into something similar in which: ny> a := A ny> bar: ny>@echo $a ny> a := B ny> would output B. Of course. As expected. Command scripts are not expanded until they are about to be invoked by make,

Re: [PATCH] pattern-specific variable expansion

2004-04-19 Thread Paul D. Smith
%% Noel Yap <[EMAIL PROTECTED]> writes: ny> Hmmm, I ran into something similar in which: ny> a := A ny> bar: ny> @echo $a ny> a := B ny> would output B. Of course. As expected. Command scripts are not expanded until they are about to be invoked by make, which is well after all

Re: [PATCH] pattern-specific variable expansion

2004-04-19 Thread Boris Kolpackov
Noel Yap <[EMAIL PROTECTED]> writes: > Hmmm, I ran into something similar in which: > > a := A > > bar: > @echo $a > > a := B > > > would output B. This is correct behavior as per manual. If you want it to print A then write something like bar: a_ := $a # not sure a := $a will

Re: [PATCH] pattern-specific variable expansion

2004-04-19 Thread Noel Yap
Hmmm, I ran into something similar in which: a := A bar: @echo $a a := B would output B. Does this patch fix this as well? Thanks, Noel Boris Kolpackov wrote: Good day, The following makefile prints 'B' instead of 'A'. a := A %bar : arg := $a %bar : ; @echo $(arg) a := B foobar:

[PATCH] pattern-specific variable expansion

2004-04-09 Thread Boris Kolpackov
Good day, The following makefile prints 'B' instead of 'A'. a := A %bar : arg := $a %bar : ; @echo $(arg) a := B foobar: Patch is attached for those who find this behavior surprising. Also note that this patch does not address the following cases: %bar : a := a %bar : $a_b := a_b # doesn