|
From: | ReubenH |
Subject: | Re: Multiple targets generated by one rule |
Date: | Fri, 13 Apr 2007 06:34:21 -0700 (PDT) |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |