]> git.tdb.fi Git - builder.git/blob - source/install.h
672161580c8ee3b2bc67b5ac5d7d8396c3d62f2b
[builder.git] / source / install.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 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         const char *get_type() const { return "Install"; }
22         void       check_rebuild();
23         Action     *build();
24 private:
25         std::string generate_target_name(const Target &);
26 };
27
28 #endif