]> git.tdb.fi Git - builder.git/blob - source/install.h
Move the logic for creating targets into the Component class
[builder.git] / source / install.h
1 #ifndef INSTALL_H_
2 #define INSTALL_H_
3
4 #include "target.h"
5
6 /**
7 Represents the installation of a file.
8 */
9 class Install: public Target
10 {
11 public:
12         Install(Builder &, const Package &, Target &);
13         const char *get_type() const { return "Install"; }
14         void       check_rebuild();
15         Action     *build();
16 private:
17         std::string generate_target_name(const Target &);
18 };
19
20 #endif