// Make the cmdline target depend on all targets mentioned on the command line
Target *cmdline = new VirtualTarget(*this, "cmdline");
- bool build_world = false;
for(list<string>::iterator i=cmdline_targets.begin(); i!=cmdline_targets.end(); ++i)
{
Target *tgt = get_target(*i);
IO::print("I don't know anything about %s\n", *i);
return -1;
}
- if(tgt==world)
- build_world = true;
+
cmdline->add_depend(tgt);
}