help-make
[Top][All Lists]
Advanced

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

Re: function $(eval ...) in make 3.81 compared to 3.80


From: Philip Guenther
Subject: Re: function $(eval ...) in make 3.81 compared to 3.80
Date: Tue, 26 Jun 2007 11:58:03 -0600

Arrrgh.  Hit send while still editing...

On 6/26/07, Philip Guenther <address@hidden> wrote:
...
The work around is to put the bits to eval into a variable and eval
the variable's value:

    tmp = 2d: ; @echo with 2 dollars: target=$@
    $(eval ${value tmp})
or

   tmp = 2d: ; @echo with 2 dollars: target=$$@
   $(eval ${tmp})

Those both work in both 3.80 and 3.81.  Which you'll want to use
depends on whether you want the extra expansion seen in the second of
those.

(You can also set 'tmp' with define/endef, which is often more
readable for rule-like values)


Philip Guenther




reply via email to

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