bugmake - Bugs: bug #51269, Reusing data from targets for...

 
 

bug #51269: Reusing data from targets for prerequisites

Submitter:  Markus Elfring <elfring>
Submitted:  Mon 19 Jun 2017 05:34:22 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Not A Bug 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
   

Sun 02 Jul 2017 03:44:08 PM UTC, comment #2: 

I would also like to restrict secondary expansion (or evaluation?) to specific make rules which might not fit to the following information.

“…
In order for this second expansion to occur, the special target .SECONDEXPANSION must be defined before the first prerequisite list that makes use of this feature.
…”


Are there any further software development challenges to consider so that such functionality will only be switched on for a specific scope in a make script?

Markus Elfring <elfring>
Sun 02 Jul 2017 03:30:21 PM UTC, comment #1: 

The secondary expansion feature already provides this capability.  That's what it's for.

https://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html

Paul D. Smith <psmith>
Group administrator
Mon 19 Jun 2017 05:34:22 PM UTC, original submission:  

The make software supports pattern rules for a while. The percent character must be specified for prerequisites and targets there which is mapped to a stem then.

Multiple targets can also be used for a specific make rule. Automatic variables provide corresponding data.

The documentation contains the following information:
“…
It’s very important that you recognize the limited scope in which automatic variable values are available: they only have values within the recipe.
…”

How are the chances to adjust this software restriction?

I would appreciate if parts from target names can also be occasionally reused for prerequisite specifications.
Would it make sense to allow that another special syntax will denote additional placeholders (similar to the handling of the percent character)?

Markus Elfring <elfring>

 

(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 elfring (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
    2017-07-02 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code