if(tool)
se.set_tool(*tool);
se.primary_target = this;
+ /* Side effects are checked for rebuild after the primary target. Recheck
+ the primary if a side effect is marked for rebuild. */
+ se.signal_bubble_rebuild.connect(sigc::mem_fun(this, &Target::check_rebuild));
}
Target *Target::get_buildable_target()
Task *Target::build()
{
+ if(primary_target)
+ return primary_target->build();
+
Task *task = tool->run(*this);
task->signal_finished.connect(sigc::mem_fun(this, &Target::build_finished));
state = BUILDING;