[Top][All Lists]

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

[bug #18305] target specific variables with conditional assignments

From: Oliver Kiddle
Subject: [bug #18305] target specific variables with conditional assignments
Date: Wed, 15 Nov 2006 12:44:31 +0000
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1) Gecko/20061024 Firefox/2.0


                 Summary: target specific variables with conditional
                 Project: make
            Submitted by: opk
            Submitted on: Wednesday 11/15/2006 at 13:44
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
       Component Version: 3.81
        Operating System: Any
           Fixed Release: None



If a target-specific conditional variable assignment is used, it
unconditionally overrides any inherited target-specific variable. Try the
following Makefile with and without the first line. The command is always run
with the argument 'two'.

all: TARGET = one
all: lib

lib: TARGET ?= two
        make -f second.mk $(TARGET)

The bug might arguably be that the target-specific variable is being
inherited at all though that's actually a useful feature for me. I can get
this Makefile to work as I want by using $(or $(TARGET),two).



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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