bug-make
[Top][All Lists]
Advanced

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

[bug #36486] Overrides and append to pattern specific variables


From: anonymous
Subject: [bug #36486] Overrides and append to pattern specific variables
Date: Thu, 17 May 2012 15:34:28 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0

URL:
  <http://savannah.gnu.org/bugs/?36486>

                 Summary: Overrides and append to pattern specific variables
                 Project: make
            Submitted by: None
            Submitted on: Thu 17 May 2012 15:34:27 UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Hi,

Using a target pattern to append to an override variable is not behaving as I
expect.  The behaviour is also different depending on whether the override
variable is defined on the command line or inside a makefile.  The problem is
demonstrated by the following makefile:

override MO=mo
all: ; @echo 'MO=$(MO), CLO=$(CLO)'
a%: MO += add_to_mo
a%: CLO += add_to_clo

I build it with the following command:

make CLO=clo

The output I see is:

MO=mo add_to_mo, CLO=clo clo

But what I expected to see was:

MO=mo, CLO=clo

It seems the pattern specific append is affecting the value of the override
variables, however I don't think that should be possible unless the pattern
specific append it also given the override attribute.  The case with the CLO
variable seems particularly strange as the effect is to double the globally
defined value.

regards,
Rob.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36486>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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