]> git.tdb.fi Git - builder.git/blobdiff - source/tarball.h
Rework the Target class hierarchy
[builder.git] / source / tarball.h
index 04cd661eb7995a88c9187b2db27e5761cf980a93..6b89ffc0269d02b082f02d6bc17fec52bc4dccab 100644 (file)
@@ -1,27 +1,26 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #ifndef TARBALL_H_
 #define TARBALL_H_
 
-#include "target.h"
+#include "filetarget.h"
 
-class TarBall: public Target
+class TarBall: public FileTarget
 {
 public:
        TarBall(Builder &, const SourcePackage &, const std::string & =std::string());
        virtual const char *get_type() const { return "TarBall"; }
        const SourcePackage *get_package() const;
        virtual void find_depends();
-       virtual Action *build();
 private:
-       std::string tarname;
+       virtual Action *create_action();
 
-       std::string create_target_name(const SourcePackage &, const std::string &);
+       static std::string create_target_name(const SourcePackage &, const std::string &);
 };
 
 #endif