]> git.tdb.fi Git - builder.git/blobdiff - source/tarball.cpp
Rework the Target class hierarchy
[builder.git] / source / tarball.cpp
index 5d7678d28a79e33f55a076166b8886915365f5c2..d727590808777b58125b294666c3e5990fe7aa9f 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -14,7 +14,7 @@ Distributed under the LGPL
 using namespace std;
 
 TarBall::TarBall(Builder &b, const SourcePackage &p, const string &ev):
-       Target(b, &p, create_target_name(p, ev))
+       FileTarget(b, &p, create_target_name(p, ev))
 {
        buildable=true;
 }
@@ -45,9 +45,9 @@ void TarBall::find_depends()
        deps_ready=true;
 }
 
-Action *TarBall::build()
+Action *TarBall::create_action()
 {
-       return Target::build(new Tar(builder, *this));
+       return new Tar(builder, *this);
 }
 
 string TarBall::create_target_name(const SourcePackage &pkg, const string &extra_ver)