- 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);
-
- main_pkg->prepare();
-
- // 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)