bug-make
[Top][All Lists]
Advanced

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

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


From: anonymous
Subject: [bug #58845] In would be nice to have "$&" expand to all targets in a grouped target
Date: Tue, 28 Jul 2020 16:55:13 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

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 via email to

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