From f75a99316e896cf1e424a489ce360a67844d86b0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 8 Jul 2012 23:27:44 +0300 Subject: [PATCH] Make targets depend on their tools --- source/target.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.45.2