help-make
[Top][All Lists]
Advanced

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

Re: How to capture a set of recurring rules?


From: Philip Guenther
Subject: Re: How to capture a set of recurring rules?
Date: Mon, 1 Feb 2010 23:13:53 -0800

On Monday, February 1, 2010, Paul Smith <address@hidden> wrote:
...
> define special-rule
> all: $1.RData
>
> clean $1.RData
>         $$(RM) $$^
>
> $1.RData: $1.R $2 $3 $4 $5 $6 $7 $8 $9
>         Rscript $$<
> enddef
>
> $(eval $(call special-rule,xxx,a.txt,b.txt))
> $(eval $(call special-rule,uuu,x.txt,y.txt,z.txt))
>
>
> Note that this has the disadvantage that if you have >8 prerequisites it
> will fail.  You can increase this as much as you want but I can't think
> of a way, offhand, to make it foolproof.

Why do the dependencies need to be separate arguments to the macro and
not just one argument with embedded spaces?

Philip Guenther




reply via email to

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