URL:
  <https://savannah.gnu.org/bugs/?54727>

                 Summary: foreach variable is not visible for a target
specific variable definition in a recipe
                 Project: make
            Submitted by: mbuilov
            Submitted on: Tue 25 Sep 2018 02:48:25 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Very similar to bug #11913, but now target-specific variable is defined in a
recipe:

echo 'all:;$(foreach x,1,$(eval all: K:=$$(info "$$x")))' | make -f -

result:
""

expecting:
"1"



Defining global (not a target-specific) variable in a recipe works as
expected:

echo 'all:;$(foreach x,1,$(eval K:=$$(info "$$x")))' | make -f -

result:
"1"





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54727>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


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

Reply via email to