[bug #57898] Automatic variable for all targets on grouped target

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #57898] Automatic variable for all targets on grouped target

anonymous
URL:
  <https://savannah.gnu.org/bugs/?57898>

                 Summary: Automatic variable for all targets on grouped target
                 Project: make
            Submitted by: None
            Submitted on: Tue 25 Feb 2020 08:09:08 PM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

It would be handy to have an automatic variable to show all targets on a
grouped target rule...

    a b &:
        @echo building $?

which would output:  'building a b'...






    _______________________________________________________

Reply to this item at:

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

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


Reply | Threaded
Open this post in threaded view
|

[bug #57898] Automatic variable for all targets on grouped target

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

*$?* is of course already taken (for the update-triggering prerequisites).

But I would also find it very useful to have an automatic variable for all the
targets in the group.

How about *$%* (archive member name) then? The documentation says it's empty
if the target is not an archive member. So we could add another case here: if
the target is part of a group, the full name of the group.

Or how about another ASCII special character like *$&*?

    _______________________________________________________

Reply to this item at:

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

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