]> git.tdb.fi Git - builder.git/blobdiff - source/install.h
Include libmode in library lookup hash
[builder.git] / source / install.h
index 2aa3280a75778494e664c0a8562c43e17dd12098..84c2b23ef49cb9189c75fd469ba48cc8a1dcac0d 100644 (file)
@@ -1,16 +1,29 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 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 &);
+       Install(Builder &, const SourcePackage &, Target &);
        const char *get_type() const { return "Install"; }
-       void check_rebuild();
-       Action *build();
+       void       check_rebuild();
 private:
+       virtual Action *create_action();
+
+       static std::string generate_target_name(const Target &);
 };
 
 #endif