if(const ObjectFile *obj = dynamic_cast<const ObjectFile *>(&tgt))
return build_depend_table(obj->get_source(), depth);
}
- else if(mode==REBUILD && !tgt.needs_rebuild() && !real->needs_rebuild())
+ else if(mode==REBUILD && !tgt.needs_rebuild())
/* All targets that depend on to-be-built targets will be rebuilt
themselves, so we can stop here. */
return;
mark_rebuild((*i)->get_name()+" has changed");
else if((*i)->needs_rebuild())
mark_rebuild((*i)->get_name()+" needs rebuilding");
- else
- {
- Target *real = ft->get_real_target();
- if(real->needs_rebuild())
- mark_rebuild(real->get_name()+" needs rebuilding");
- }
}
}