+ 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)
+ {
+ string build_sig = create_build_signature();
+ if(!build_sig.empty())
+ package->get_cache().set_value(this, "build_sig", build_sig);
+ }
+ }
+
+ Target::build_finished(success);
+}
+
+void FileTarget::clean()
+{
+ if(mtime)
+ {
+ FS::unlink(path);
+ mtime = Time::TimeStamp();
+ size = 0;
+ check_rebuild();
+ }