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 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.81 Operating System:  Any
Fixed Release:  None Triage Status:  None

Add a New Comment(Rich 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 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 (Updated the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-09 psmith Component Version4.0 => 3.81

    Back to the top


    Powered by Savane 3.3