]> git.tdb.fi Git - builder.git/blobdiff - source/virtualtarget.h
Always prepare cmdline to avoid some dependency hassle
[builder.git] / source / virtualtarget.h
index 65967f2bc5d2a603fc434983f5428b36dcd5bbb8..252c68f3cb3aa7ebd6f187f349954463a22399f4 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef VIRTUALTARGET_H_
 #define VIRTUALTARGET_H_
 
@@ -10,11 +17,10 @@ class VirtualTarget: public Target
 {
 public:
        VirtualTarget(Builder &b, const std::string &n): Target(b, 0, n) { }
-       const char *get_type() const { return "VirtualTarget"; }
-       Action     *build()          { rebuild=false; return 0; }
-       unsigned   count_rebuild();
+       virtual const char *get_type() const { return "VirtualTarget"; }
 private:
-       void check_rebuild();
+       virtual void check_rebuild();
+       virtual Action *create_action() { return 0; }
 };
 
 #endif