bugmake - Bugs: bug #55243, Request for a way to indicate that...

 
 

bug #55243: Request for a way to indicate that the same recipe execution produces several targets

Submitter:  Renaud Pacalet <pacalet>
Submitted:  Wed 19 Dec 2018 12:53:09 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.2.1 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 13 May 2019 03:51:39 AM UTC, comment #1: 

Duplicate of bug #8297

Paul D. Smith <psmith>
Group administrator
Wed 19 Dec 2018 12:53:09 PM UTC, original submission:  

This request for enhancement concerns cases where multiple targets are produced by one single execution of a recipe.

I frequently encounter situations where a single recipe execution produces several targets and I'd like make to know about all these targets.

I know there is a side-effect of pattern rules with several targets that leads make to consider that all targets matched by one activation of the rule are produced by a single execution of the recipe.

But exploiting this sometimes leads to clumsy Makefiles where pattern rules are used without any other reason than this side effect. Moreover, building the list of pattern targets is sometimes difficult.

It would be much more convenient to have a new type of rule dedicated to this situation. For instance, a triple-colon rule:


a b c::: foo
    touch a b c


Of course, there are several related questions, like, for instance:

  1. the semantics of the $@ automatic variable (list of targets, first target in the list, other?),
  2. the existence or not of a corresponding (static) pattern rule,
  3. ...
Renaud Pacalet <pacalet>

 

(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)
  • -email is unavailable- added by pacalet (Submitted the item)
  •  

    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
    2019-05-13 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code