]> git.tdb.fi Git - builder.git/blob - source/virtualtarget.h
Add comments
[builder.git] / source / virtualtarget.h
1 #ifndef VIRTUALTARGET_H_
2 #define VIRTUALTARGET_H_
3
4 #include "target.h"
5
6 /**
7 A target that is not associated with any file.
8 */
9 class VirtualTarget: public Target
10 {
11 public:
12         VirtualTarget(Builder &b, const std::string &n): Target(b, 0, n) { }
13         const char *get_type() const { return "VirtualTarget"; }
14         Action     *build()          { rebuild=false; return 0; }
15         unsigned   count_rebuild();
16 private:
17         void check_rebuild();
18 };
19
20 #endif