bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #36881] Sample code for $(eval) is incorrect and fails.


From: John Joganic
Subject: Re: [bug #36881] Sample code for $(eval) is incorrect and fails.
Date: Thu, 19 Jul 2012 10:28:26 -0700
User-agent: Postbox 3.0.4 (Macintosh/20120616)

This is precisely the information that I was looking for.  Thank you, Philip.

-John
July 19, 2012 10:19 AM

The info docs that are part of the installed binary package would
surely match the installed binary.
Either
info make
or
info 'gnu make'

has worked on every system I've seen.


Philip Guenther
July 19, 2012 10:14 AM
Follow-up Comment #4, bug #36881 (project make):

Fair enough. I stand corrected.

I was more concerned over the inability to access the information online as
the vast majority of people who use make get it through binary package
managers. The NEWS file is not something that is conveniently available, and
all my systems, even ones that I recently provisioned, are running 3.81.

Thank you for the link. I will bring myself up to date.

_______________________________________________________

Reply to this item at:

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

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

July 18, 2012 5:38 PM
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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]