bug-make
[Top][All Lists]
Advanced

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

Re: [PATCH] pattern-specific variable expansion


From: Boris Kolpackov
Subject: Re: [PATCH] pattern-specific variable expansion
Date: Mon, 19 Apr 2004 16:58:40 -0500
User-agent: Mutt/1.5.4i

Noel Yap <address@hidden> 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 work
bar:; @echo $(a_)

 
In contrast the patch fixes the following case:

a := A

%bar : a_ := $a

%bar :; @echo $(a_) 

a := B

foobar:

Which prints (without patch) B.

hth,
-boris

Attachment: signature.asc
Description: Digital signature


reply via email to

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