]> git.tdb.fi Git - builder.git/blob - source/virtualtarget.h
Refactor transitive dependencies to work on all targets
[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 &, const std::string &);
13
14         virtual const char *get_type() const { return "VirtualTarget"; }
15 private:
16         virtual void check_rebuild();
17
18 public:
19         virtual Task *build();
20 };
21
22 #endif