- FileTarget *file = builder.get_target_by_path(*i);
- if(!file)
- file = new File(builder, *i);
- files.push_back(file);
- }
-
- if(name=="@src")
- {
- const Builder::TargetMap &targets = builder.get_targets();
- for(Builder::TargetMap::const_iterator i=targets.begin(); i!=targets.end(); ++i)
- if(i->second->get_package()==&pkg && !i->second->is_buildable())
- files.push_back(i->second);
- }
-
- /* XXX The source files don't have a package at the moment, so we can't
- create the tarball target until things get fixed up a bit */
- /*Target *result = tar.create_target(files, tarname);
-
- Target *tarballs_tgt = builder.get_target("tarballs");
- tarballs_tgt->add_depend(result);*/
-
- return;
- }
- else if(type==INSTALL)
- {
- inst_loc = name;
- for(PathList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
- {
- FileTarget *ft;
- if(Target *tgt = builder.get_target_by_path(*i))
- ft = dynamic_cast<FileTarget *>(tgt);
- else
- ft = new File(builder, pkg, *i);
- inst_list.push_back(ft);
+ binfo.local_incpath.push_back(dir);
+ for(const string &o: overlays)
+ binfo.local_incpath.push_back(dir/o);