[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #54727] foreach variable is not visible for a target specific varia
From: |
Michael Builov |
Subject: |
[bug #54727] foreach variable is not visible for a target specific variable definition in a recipe |
Date: |
Tue, 25 Sep 2018 10:48:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 |
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 #54727] foreach variable is not visible for a target specific variable definition in a recipe,
Michael Builov <=