bugmake - Bugs: bug #58845, In would be nice to have...

 
 

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

Submitter:  None
Submitted:  Tue 28 Jul 2020 08:55:11 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.3 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Jul 2020 07:26:18 AM UTC, comment #1: 

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

Paul D. Smith <psmith>
Group administrator
Tue 28 Jul 2020 08:55:11 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-29 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code