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;
row.push_back("");
if(tgt.needs_rebuild())
- {
- if(tgt.get_rebuild_reason().empty())
- row.push_back("Yes (no reason)");
- else
- row.push_back(tgt.get_rebuild_reason());
- }
+ row.push_back(tgt.get_rebuild_reason());
table.push_back(row);