]> git.tdb.fi Git - builder.git/blobdiff - source/virtualtarget.h
Fix an incorrect assumption of target name being the basename of its path
[builder.git] / source / virtualtarget.h
index e388061027a20fa9cfe4bae3d6b8f3aede19fec9..9822e65e89eb0b26301dce5eb87a6c3ea1cd9af2 100644 (file)
@@ -3,12 +3,17 @@
 
 #include "target.h"
 
+/**
+A target that is not associated with any file.
+*/
 class VirtualTarget: public Target
 {
 public:
-       VirtualTarget(Builder &b, const std::string &n): Target(b,0,n) { }
-       const char *get_type() const { return "VirtualTarget"; }
-       void find_depends() { }
+       VirtualTarget(Builder &, const std::string &);
+       virtual const char *get_type() const { return "VirtualTarget"; }
+private:
+       virtual void check_rebuild();
+       virtual Action *create_action() { return 0; }
 };
 
 #endif