From: Mikko Rasa Date: Mon, 21 Sep 2009 09:54:09 +0000 (+0000) Subject: Properly handle default and install options for datafiles X-Git-Tag: 1.0~4 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7b8f5857b28e67c4e829b5442b38ac5705715d8d;p=builder.git Properly handle default and install options for datafiles --- 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 {