- Target *def_tgt = new VirtualTarget(*this, "default");
- world->add_depend(def_tgt);
-
- Target *install = new VirtualTarget(*this, "install");
- world->add_depend(install);
-
- Target *tarballs = new VirtualTarget(*this, "tarballs");
- world->add_depend(tarballs);
-
- const PackageManager::PackageMap &packages = package_manager.get_packages();
- for(PackageManager::PackageMap::const_iterator i=packages.begin(); i!=packages.end(); ++i)
- if(i->second && i->second->is_configured())
- i->second->create_targets();
-
- // Make the cmdline target depend on all targets mentioned on the command line
- Target *cmdline = new VirtualTarget(*this, "cmdline");
- for(list<string>::iterator i=cmdline_targets.begin(); i!=cmdline_targets.end(); ++i)
+ // Add targets from command line as goals
+ for(NameList::iterator i=cmdline_targets.begin(); i!=cmdline_targets.end(); ++i)