X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Finstall.cpp;h=721f9636460f7d0b92a558733d5384443eb1e553;hb=bdc8b6638b486aa668b4a9c6c5cce5f6b5f18222;hp=c26024a801874328f61e755144d59fc30f0bfc7e;hpb=4d0d003b022943d8a0e39ba19078bab8d32d8857;p=builder.git diff --git a/source/install.cpp b/source/install.cpp index c26024a..721f963 100644 --- a/source/install.cpp +++ b/source/install.cpp @@ -39,16 +39,16 @@ void Install::check_rebuild() } } -Action *Install::build() +Action *Install::create_action() { - return Target::build(new Copy(builder, *package, depends.front()->get_name(), name)); + return new Copy(builder, *package, depends.front()->get_name(), name); } string Install::generate_target_name(const Target &tgt) { const SourcePackage *spkg=dynamic_cast(tgt.get_package()); - Path base=spkg->get_prefix(); + Path base=spkg->get_builder().get_prefix(); string tgtname=tgt.get_name().substr(tgt.get_name().rfind('/')+1); string mid;