help-make
[Top][All Lists]
Advanced

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

Can I change a variable inside a rule?


From: Martin Mensch
Subject: Can I change a variable inside a rule?
Date: Sun, 2 May 2010 12:23:14 +0200

Hello,
 
is there a way to change a variable inside a rule?
Maybe like this:
 
LIST = a.c b.c c.c d.c
 
%.c:
# creating %.c
here add $@ to the variable FILES, but simply FILES += $@ doesn't work here
 
end:
    @echo files compiled: $(FILES)
 
all: $(LIST) end
 
Thank you for any help
 
Martin

reply via email to

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