]> git.tdb.fi Git - builder.git/blob - source/virtualtarget.h
Make the name of a FileTarget be its basename instead of full path
[builder.git] / source / virtualtarget.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 VIRTUALTARGET_H_
9 #define VIRTUALTARGET_H_
10
11 #include "target.h"
12
13 /**
14 A target that is not associated with any file.
15 */
16 class VirtualTarget: public Target
17 {
18 public:
19         VirtualTarget(Builder &, const std::string &);
20         virtual const char *get_type() const { return "VirtualTarget"; }
21 private:
22         virtual void check_rebuild();
23         virtual Action *create_action() { return 0; }
24 };
25
26 #endif