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

                 Summary: Target-specific variables not honored for rules
generated by $(eval)
                 Project: make
            Submitted by: andygoth
            Submitted on: Friday 05/18/2007 at 17:08
                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: Any
           Fixed Release: None

    _______________________________________________________

Details:

Target-specific and pattern-specific variables don't seem to work within
rules generated with the $(eval) function.

Sample Makefile without $(eval):

var := bad
all: var := good
all:
        @echo $(var)

Running this will cause "good" to be printed.

Sample Makefile with $(eval):

var := bad
all: var := good
define template
all:
        @echo $(var)
endef
$(eval $(template))

Running this will cause "bad" to be printed.




    _______________________________________________________

Reply to this item at:

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

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



_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to