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

 
 

bug #51269: Reusing data from targets for prerequisites

Submitted by:  Markus Elfring <elfring>
Submitted on:  Mon 19 Jun 2017 05:34:22 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 4.2.1Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by elfring (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 02 Jul 2017 03:30:21 PM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1