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


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

Submitted by:  Boris Kolpackov <bosk>
Submitted on:  Wed Dec 14 13:20:48 2005  
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 Dec 14 19:23:02 2005, 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 Dec 14 13:54:21 2005, comment #1:

Does it work to do things in two steps:

define xbar

foo: bar = $(xbar)


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

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

foo: define bar

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

Boris Kolpackov <bosk>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

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 Oct 9 04:48:23 2013psmithComponent Version4.0=>3.81

    Back to the top

    Powered by Savane 3.1-cleanup1