X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.cpp;h=e96ac220cf48ed2d2525a4d6f1a21183503394c6;hb=7b8f5857b28e67c4e829b5442b38ac5705715d8d;hp=26ce71058dfd79edf38b5006e2d5620cd82261b3;hpb=190b83af0103e3ed7ae244a617ac15fb90fa5776;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index 26ce710..e96ac22 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -145,7 +145,13 @@ void Component::create_targets() const else source=new File(builder, pkg, files.front()); ::DataFile *result=new ::DataFile(builder, *this, *source); - inst_list.push_back(result); + + if(&pkg==builder.get_main_package() && deflt) + def_tgt->add_depend(result); + else + world->add_depend(result); + if(install) + inst_list.push_back(result); } else {