> 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.
--
-
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
%% 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
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,
%% 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
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
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:
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