I am trying to solve this exact same problem. Is there any way to update a
variable from within a command section? If that's possible then an easy
solution certainly exists... something like this:
objfiles = foo.o bar.o
srcfiles =
all: $(objfiles) phony
%o : %.cpp
srcfiles += $? <-- if only this wasn't treated as a shell
command!
phony:
compiler.exe srcfiles
--
View this message in context:
http://www.nabble.com/Multiple-targets-generated-by-one-rule-tf3552693.html#a9979063
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make