+ }
+}
+
+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(Target *d: depends)
+ if(d->get_component()==component && d->get_tool())
+ depend_tools.insert(d->get_tool());
+
+ for(const Tool *t: depend_tools)
+ sigs.push_back(t->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)