]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfig.cpp
Rework the Target class hierarchy
[builder.git] / source / pkgconfig.cpp
index d31ab9d2d9ce01cc4d8be570ba37d3fe428ea9f0..5daf455d25c4e080c5b5159fdb4cad7e4e96f56f 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-200 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -10,13 +10,12 @@ Distributed under the LGPL
 #include "pkgconfigaction.h"
 
 PkgConfig::PkgConfig(Builder &b, const SourcePackage &p):
-       Target(b, &p, (p.get_source()/(p.get_name()+".pc")).str()),
-       pkg(p)
+       FileTarget(b, &p, p.get_source()/(p.get_name()+".pc"))
 {
        buildable=true;
 }
 
-Action *PkgConfig::build()
+Action *PkgConfig::create_action()
 {
-       return Target::build(new PkgConfigAction(builder, *this));
+       return new PkgConfigAction(builder, *this);
 }