+ }
+}
+
+string FileTarget::create_build_signature() const
+{
+ if(!package)
+ return string();
+
+ const BuildInfo &binfo = (component ? component->get_build_info() : package->get_build_info());
+ list<string> sigs;
+ if(nested_build_sig && component)
+ {
+ set<const Tool *> depend_tools;
+ for(Dependencies::const_iterator i=depends.begin(); i!=depends.end(); ++i)
+ if((*i)->get_component()==component && (*i)->get_tool())
+ depend_tools.insert((*i)->get_tool());
+
+ for(set<const Tool *>::const_iterator i=depend_tools.begin(); i!=depend_tools.end(); ++i)
+ sigs.push_back((*i)->create_build_signature(binfo));
+ sigs.sort();
+ sigs.push_front(tool->create_build_signature(binfo));
+ }
+ else
+ sigs.push_back(tool->create_build_signature(binfo));
+
+ if(arch_in_build_sig)
+ if(const Architecture *arch = tool->get_architecture())
+ sigs.push_front(arch->get_name());
+
+ return join(sigs.begin(), sigs.end(), ";");
+}
+
+void FileTarget::build(Task &task)
+{
+ task.add_file(path);
+ task.set_unlink(true);
+}
+
+void FileTarget::build_finished(bool success)
+{
+ if(success)
+ {
+ stat();
+ if(package)