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

 
 

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

Submitter:  Boris Kolpackov <bosk>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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)
  •  

    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.

     

    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.13-f8d8.
    Corresponding source code