]> git.tdb.fi Git - builder.git/blob - source/install.h
41b43828e8a3304e546084d20756e7be33f3f75f
[builder.git] / source / install.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef INSTALL_H_
9 #define INSTALL_H_
10
11 #include "sourcepackage.h"
12 #include "target.h"
13
14 /**
15 Represents the installation of a file.
16 */
17 class Install: public Target
18 {
19 public:
20         Install(Builder &, const SourcePackage &, Target &);
21         virtual const char *get_type() const { return "Install"; }
22 private:
23         virtual void check_rebuild();
24         virtual Action *create_action();
25
26         static std::string generate_target_name(const Target &);
27 };
28
29 #endif