[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #36881] Sample code for $(eval) is incorrect and fails.
From: |
John Joganic |
Subject: |
[bug #36881] Sample code for $(eval) is incorrect and fails. |
Date: |
Thu, 19 Jul 2012 00:38:41 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11 |
URL:
<http://savannah.gnu.org/bugs/?36881>
Summary: Sample code for $(eval) is incorrect and fails.
Project: make
Submitted by: jjoganic
Submitted on: Thu 19 Jul 2012 12:38:40 AM GMT
Severity: 3 - Normal
Item Group: Documentation
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.81
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
The sample code reads:
define PROGRAM_template =
$(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%)
ALL_OBJS += $$($(1)_OBJS)
endef
$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
However, the '=' following PROGRAM_template causes the definition to have no
effect.
In short, any one using this code as an example to create templates will find
that no parameterized rules are actually generated.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36881>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #36881] Sample code for $(eval) is incorrect and fails.,
John Joganic <=
- [bug #36881] Sample code for $(eval) is incorrect and fails., David Boyce, 2012/07/19
- [bug #36881] Sample code for $(eval) is incorrect and fails., John Joganic, 2012/07/19
- Re: [bug #36881] Sample code for $(eval) is incorrect and fails., Stefano Lattarini, 2012/07/19
- [bug #36881] Sample code for $(eval) is incorrect and fails., Paul D. Smith, 2012/07/19
- [bug #36881] Sample code for $(eval) is incorrect and fails., John Joganic, 2012/07/19
- Re: [bug #36881] Sample code for $(eval) is incorrect and fails., Philip Guenther, 2012/07/19
- Re: [bug #36881] Sample code for $(eval) is incorrect and fails., John Joganic, 2012/07/19
- Re: [bug #36881] Sample code for $(eval) is incorrect and fails., David Boyce, 2012/07/19
- Re: [bug #36881] Sample code for $(eval) is incorrect and fails., Paul Smith, 2012/07/19
- [bug #36881] Sample code for $(eval) is incorrect and fails., Paul D. Smith, 2012/07/19