|
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
|
[Prev in Thread] | Current Thread | [Next in Thread] |