[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: |
Lane Schwartz |
Subject: |
Re: Rule to compile file[0-9].lf + file.file => file[0-9].view |
Date: |
Sat, 9 Jul 2011 10:29:51 -0400 |
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. Correction below:
# 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))