]> git.tdb.fi Git - builder.git/blobdiff - source/install.h
Reorder class members
[builder.git] / source / install.h
index 503205a021f0a4223e9bb537078193d130d05444..41b43828e8a3304e546084d20756e7be33f3f75f 100644 (file)
@@ -1,16 +1,29 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef INSTALL_H_
 #define INSTALL_H_
 
+#include "sourcepackage.h"
 #include "target.h"
 
+/**
+Represents the installation of a file.
+*/
 class Install: public Target
 {
 public:
-       Install(Builder &, const Package &, Target &, const std::string &);
-       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:
+       virtual void check_rebuild();
+       virtual Action *create_action();
+
+       static std::string generate_target_name(const Target &);
 };
 
 #endif