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-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make