help-make
[Top][All Lists]
Advanced

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

Re: how to suppress the included makefile not found warning?


From: Noel Yap
Subject: Re: how to suppress the included makefile not found warning?
Date: Wed, 11 Feb 2004 17:53:39 -0500

David Wuertele wrote:
> 
> Noel> What about the possibly-not-so-obvious use of $(foreach) and $(eval)?
> 
> I tried $(foreach), but I was not able to make it generate a pattern.
> I was doing something like this:
> 
>   $(foreach program,$(PROGRAMS),$(program): $($(program)_OBJ))
> 
> For some reason, the iterated rules do not get parsed.

Yeah, you need $(eval) (be sure you're using gmake-3.80 with the $(eval) 
patches):

$(foreach p,$(PROGRAMS),$(eval $(p): $($(p)_OBJ)))

HTH,
Noel
-- 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited.




reply via email to

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