]> git.tdb.fi Git - builder.git/blobdiff - source/install.h
Reorder class members
[builder.git] / source / install.h
index bdabc6e7c3853afd87d5425ba42f10bf14db25a4..41b43828e8a3304e546084d20756e7be33f3f75f 100644 (file)
@@ -1,13 +1,14 @@
 /* $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
 */
 
 #ifndef INSTALL_H_
 #define INSTALL_H_
 
+#include "sourcepackage.h"
 #include "target.h"
 
 /**
@@ -16,12 +17,13 @@ Represents the installation of a file.
 class Install: public Target
 {
 public:
-       Install(Builder &, const Package &, Target &);
-       const char *get_type() const { return "Install"; }
-       void       check_rebuild();
-       Action     *build();
+       Install(Builder &, const SourcePackage &, Target &);
+       virtual const char *get_type() const { return "Install"; }
 private:
-       std::string generate_target_name(const Target &);
+       virtual void check_rebuild();
+       virtual Action *create_action();
+
+       static std::string generate_target_name(const Target &);
 };
 
 #endif