[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20133] 'make -p' always uses ':=' for pattern-specific variable as

From: Agent Zhang
Subject: [bug #20133] 'make -p' always uses ':=' for pattern-specific variable assignments
Date: Sat, 09 Jun 2007 17:37:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061201 Firefox/ (Ubuntu-feisty)


                 Summary: 'make -p' always uses ':=' for pattern-specific
variable assignments
                 Project: make
            Submitted by: agent
            Submitted on: Saturday 06/09/2007 at 17:37
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: Any
           Fixed Release: None




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

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



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]