]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfig.cpp
Replace per-file copyright notices with a single file
[builder.git] / source / pkgconfig.cpp
index d31ab9d2d9ce01cc4d8be570ba37d3fe428ea9f0..1c7bed3a1eb51e9d79295cd2c1da9bd09a12633e 100644 (file)
@@ -1,22 +1,14 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "package.h"
 #include "pkgconfig.h"
 #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;
+       buildable = true;
 }
 
-Action *PkgConfig::build()
+Action *PkgConfig::create_action()
 {
-       return Target::build(new PkgConfigAction(builder, *this));
+       return new PkgConfigAction(builder, *this);
 }