[bug #58845] In would be nice to have "$&" expand to all targets in a grouped target

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

[bug #58845] In would be nice to have "$&" expand to all targets in a grouped target

David Boyce-5
URL:
  <https://savannah.gnu.org/bugs/?58845>

                 Summary: In would be nice to have "$&" expand to all targets
in a grouped target
                 Project: make
            Submitted by: None
            Submitted on: Tue 28 Jul 2020 08:55:11 PM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.3
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Thanks for adding grouped target rules. It would great to have an automatic
variable, say $&, which expands to all the targets in a grouped target rule,
in the order they are specified.

This would allow one to write, for example,
  %.c %.h: %.y
    $(BISON) --defines=$(word 2,$&) -o $(word 1,$&) $<

Right now, it's more cumbersome, as $@ is indeterminate.




    _______________________________________________________

Reply to this item at:

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

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


Reply | Threaded
Open this post in threaded view
|

[bug #58845] In would be nice to have "$&" expand to all targets in a grouped target

David Boyce-5
Update of bug #58845 (project make):

                  Status:                    None => Duplicate              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Thanks for the suggestion: this request has already been made in bug #57898

    _______________________________________________________

Reply to this item at:

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

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