[Top][All Lists]

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

[bug #28456] Expansion of $$< is incorrect

From: Paul D. Smith
Subject: [bug #28456] Expansion of $$< is incorrect
Date: Sat, 13 Jul 2019 13:05:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #8, bug #28456 (project make):

Thanks for that fix Mike.  I've applied it.  I rewrote the tests somewhat to
be a bit more specific.

As for the rest of these problems, there are real issues here which are not
easily solved.  The only way to make something like this:

foo: bar $$(info $$<)

work properly would be for the automatic variables to be re-assigned anew
before every expansion.  And for implicit rules like this:

%.x : %.y $$(info $$<) ; ...

it's more complicated, because we can't know what the right value of $$< is
until after we've expanded the pattern.

And for things like $$^ it's even _more_ complex, because the value cannot be
complete until after the expansion.  Using info is a bit misleading because it
prints values while expanding to nothing, but in real use the variables would
be used to add more prerequisites.

Also, some of the manual is just wrong :-/.


Reply to this item at:


  Message sent via Savannah

reply via email to

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