On Monday, February 1, 2010, Paul Smith <[email protected]> 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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to