help-make
[Top][All Lists]
Advanced

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

Re: Automatically generate rules from a list variable


From: Paul Smith
Subject: Re: Automatically generate rules from a list variable
Date: Fri, 24 Oct 2008 13:22:12 -0400

On Fri, 2008-10-24 at 12:51 -0400, Mike Shal wrote:
> >  > Thanks but this rule matches every .cpp_o files and I want it to match
> >  > only the files from LIST.

> Or you could use static patterns:

Static patterns are unquestionably the right thing to use here.

While more advanced capabilities like $(eval ...) will work, to my mind
$(eval ...) is way too big of a hammer for this problem.  I always start
with the simplest make features like pattern rules, static pattern
rules, included makefiles, constructed variable names, etc.

Only when all of these things fail to be powerful enough do I resort to
$(eval ...).






reply via email to

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