[Top][All Lists]

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

RE: Bug with new $(eval ) function

From: Martin Dorey
Subject: RE: Bug with new $(eval ) function
Date: Sun, 25 Sep 2005 12:09:50 -0700

Well diagnosed and thanks for your report.  This is, however, a known
problem.  It was fixed in the CVS version in 2002 under:


make-3.81beta3 contains the fix for this and many other problems.  I'm
using it in production.

Martin's Outlook, BlueArc Engineering

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Evan
Sent: Sunday, September 25, 2005 10:47
To: address@hidden
Subject: Bug with new $(eval ) function

Consider this makefile (also attached to get the whitespace correct):

list = a b c d

#ifeq (foo,foo)

.PHONY : all

all : $(list)

define template
.PHONY : $(1)

$(1) :
        echo $(1)

$(foreach l,$(list),$(eval $(call template,$(l))))


With the "ifeq" commented out, this makefile works.  If you uncomment 
the ifeq it breaks with:

~/evan.bigall-linux-all/tools/linux/make-3.80/bin/make -n all
Makefile:16: *** missing `endif'.  Stop.


reply via email to

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