Task *Target::build()
{
- if(!tool)
- {
- // This special case is needed for VirtualTargets
- state = UPTODATE;
- return 0;
- }
-
Task *task = tool->run(*this);
task->signal_finished.connect(sigc::mem_fun(this, &Target::build_finished));
state = BUILDING;
if((*i)->needs_rebuild())
mark_rebuild((*i)->get_name()+" needs rebuilding");
}
+
+Task *VirtualTarget::build()
+{
+ state = UPTODATE;
+ return 0;
+}
virtual const char *get_type() const { return "VirtualTarget"; }
private:
virtual void check_rebuild();
+
+public:
+ virtual Task *build();
};
#endif