[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rule to compile file[0-9].lf + file.file => file[0-9].view
From: |
Stefano Lattarini |
Subject: |
Re: Rule to compile file[0-9].lf + file.file => file[0-9].view |
Date: |
Sat, 9 Jul 2011 16:40:16 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
On Saturday 09 July 2011, Lane Schwartz wrote:
> On Sat, Jul 9, 2011 at 10:26 AM, Lane Schwartz <address@hidden> wrote:
> > # Define a rule template
> > define COMPILE
> >
> > file$n.view: file$n.lf bla.file
> > echo "compiling"
> >
> > endef
> >
> >
> > # Dynamically generate new makefile rules
> > $(foreach n,1 2 3 4 5,\
> > $(eval COMPILE))
>
> Oops. Typo. In eval, you need $COMPILE instead of COMPILE.
>
I think you need $(COMPILE), in fact.
Regards,
Stefano