bugmake - Bugs: bug #15205, define/endef for...

 
 

bug #15205: define/endef for target/pattern-specific variables

Submitted by:  Boris Kolpackov <bosk>
Submitted on:  Wed 14 Dec 2005 01:20:48 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 14 Dec 2005 07:23:02 PM UTC, comment #2:

Not always. We don't know what happens to xbar between

foo: bar = $(xbar)

and the point where bar is expanded (e.g., command script). For example it can be set to some other value.

Also it becomes quite a headache to maintain things like this:

foo: bar = $(call xbar,$1,$2,$3)

Now I need to remember to change bar definition every time I add/remove an argument in xbar.

Boris Kolpackov <bosk>
Project Member
Wed 14 Dec 2005 01:54:21 PM UTC, comment #1:

Does it work to do things in two steps:

define xbar
...
endef

foo: bar = $(xbar)

?

Paul D. Smith <psmith>
Project Administrator
Wed 14 Dec 2005 01:20:48 PM UTC, original submission:

Make does not support defining target/pattern-specific variables using define/endef:

foo: define bar
...
endef

This makes it hard to define multi-line target/pattern-specific variables. I realize that adding this feature will break makefiles
that happened to have a rule with the first target being 'define'. We could use a different syntax:

define foo: bar
...
endef

Boris Kolpackov <bosk>
Project Member

 

(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 (Updated 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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 09 Oct 2013 04:48:23 AM UTCpsmithComponent Version4.0=>3.81

    Back to the top


    Powered by Savane 3.1-cleanup