bugmake - Bugs: bug #20133, 'make -p' always uses ':=' for...


bug #20133: 'make -p' always uses ':=' for pattern-specific variable assignments

Submitted by:  Agent Zhang <agent>
Submitted on:  Sat 09 Jun 2007 05:37:51 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.


Thu 14 Jun 2007 09:31:55 PM UTC, comment #1:

I looked at this briefly and it's tough. In order to get the proper behavior for the target-specific variables, make has to modify the way the variable is stored; once that happens it's pretty hard to reconstruct the way the variable originally appeared in the makefile.

I'll look at it more closely; there might be a way to get back the original info.

Paul D. Smith <psmith>
Project Administrator
Sat 09 Jun 2007 05:37:51 PM UTC, original submission:


I've found that "make --print-data-base" produces the following bogus output for the pattern-specific variable assignment "%.x: FOO = $(BAR)":

# Pattern-specific Variable Values

%.x :
# makefile (from `a.mk', line 1)
# FOO := $$(BAR)

You see, it's totally wrong...Also, 'make -p' lazily treats both "+=" and "?=" as ":=". Sigh.

It's worth mentioning that target-specific variable assignments work fine though.

As I mentioned earlier in bug-make that I've been building a makefile AST evaluator in Perl atop the database printing feature of make. Now that I've successfully passed 45% of the official test suite, fixing bugs like this will definitely help me (and other people in the future?) proceed more smoothly :)


Agent Zhang <agent>


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

Attach Files:

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 (Posted a comment)
  • -email is unavailable- added by agent (Submitted 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.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-07-09 psmith Attached File#16072 => Removed
    2008-07-09 None Attached File- => Added get_php_80x15_2.png, #16072

    Back to the top

    Powered by Savane 3.3