bug-make
[Top][All Lists]
Advanced

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

[bug #34806] target-specific variable with conditional assignment genera


From: anonymous
Subject: [bug #34806] target-specific variable with conditional assignment generates garbage
Date: Sat, 12 Nov 2011 00:06:20 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.102 Safari/535.2

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

                 Summary: target-specific variable with conditional assignment
generates garbage
                 Project: make
            Submitted by: None
            Submitted on: Sat 12 Nov 2011 12:06:18 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Target-specific variable conditional assignment is broken.

The following Makefile:

DEFAULT=1234                                                                  
                                                                              
           
                                                                              
                                                                              
           
all:    VAR ?= $(DEFAULT)                                                     
                                                                              
           
all:                                                                          
                                                                              
           
    @echo VAR=$(VAR)

prints '1234' when invoked as 'make' but when invoked as 'make VAR=5678' will
print garbage characters.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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