bug-make
[Top][All Lists]
Advanced

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

[bug #60077] Deterministic $@ for grouped targets patch


From: Paul D. Smith
Subject: [bug #60077] Deterministic $@ for grouped targets patch
Date: Mon, 8 Mar 2021 10:30:30 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36

Follow-up Comment #1, bug #60077 (project make):

I'm not too jazzed about the idea of $@ working differently for explicit vs.
pattern rule grouped targets.  I agree that the "instigating target" may not
be so useful, but if we change $@ to be a deterministic target then there's NO
way to obtain the instigating target: that information is lost.

What I would prefer is to leave $@ as it is and implement a new variable
containing the list of all grouped targets ($& seems like a good choice to me,
or else we could use something like $(@^) which would kind of be like $^ but
for targets) for both explicit AND pattern rules, then users can either use
$(firstword $&) to obtain the deterministic target or we could introduce a new
special variable like $(@<) or something which was basically the same thing.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60077>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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