From: Mikko Rasa Date: Sun, 8 Jul 2012 20:27:44 +0000 (+0300) Subject: Make targets depend on their tools X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f75a99316e896cf1e424a489ce360a67844d86b0;p=builder.git Make targets depend on their tools --- diff --git a/source/target.cpp b/source/target.cpp index 7646ee4..510dfbd 100644 --- a/source/target.cpp +++ b/source/target.cpp @@ -75,6 +75,11 @@ void Target::prepare() state = PREPARING; find_depends(); + if(tool) + { + if(FileTarget *tool_exe = tool->get_executable()) + add_depend(tool_exe); + } for(Dependencies::iterator i=depends.begin(); i!=depends.end(); ++i) (*i)->prepare();