URL:
  <http://savannah.gnu.org/bugs/?32871>
                 Summary: Incorrect content returned by $(value) in recipe for
target specific variable
                 Project: make
            Submitted by: None
            Submitted on: Mon 21 Mar 2011 19:11:39 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:

If a global variable is added to as a target specific variable, then using
$(value ...) in a recipe gets the wrong value.

Given the attached makefile, when built with GNU Make 3.82 I get the following
output:

$(value DEFS) = FOO
$(DEFS)       = BAR FOO

but I was expecting to get:

$(value DEFS) = BAR FOO
$(DEFS)       = BAR FOO

Maybe I misunderstand the $(value) function, but as DEFS does not contain
reference to any other variable I was expecting the content of DEFS to be the
same as the expanded value of DEFS.

regards,
Rob.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 21 Mar 2011 19:11:39 UTC  Name: makefile  Size: 109B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=22981>

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to