bug-make
[Top][All Lists]
Advanced

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

[bug #39485] target specific make variables are incorrectly accumulated


From: anonymous
Subject: [bug #39485] target specific make variables are incorrectly accumulated
Date: Sun, 14 Jul 2013 20:22:01 +0000
User-agent: w3m

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

                 Summary: target specific make variables are incorrectly
accumulated
                 Project: make
            Submitted by: None
            Submitted on: Sun 14 Jul 2013 08:22:00 PM 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: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

$ cat Makefile
V=
t1: t2
t1: V+=v1
t2: V+=v2
%:
        @echo target=$@ V=$(V)

$ make t1
target=t2 V=v1 v2
target=t1 V=v1
$ make t2
target=t2 V=v2
$ make t2 t1
target=t2 V=v2
target=t1 V=v1
$ make t1 t2
target=t2 V=v1 v2
target=t1 V=v1
make: `t2' is up to date.

i expected V to be consistently v2 for target t2,
the fact that t2 is a dependency of t1 should not
change the variable setting for t2 because that
makes the result unpredictable





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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