X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualtarget.h;h=d68dba4cf77c326e5cd870119ea7438d4dd3bf69;hb=835948343817c0e359330f8522dc4b8a0e025224;hp=5cd62f2266f11a082b739334d19df72068dec8e6;hpb=b0eb979b0dc79269cb3bb5bb2e67ef4e80689cfe;p=builder.git diff --git a/source/virtualtarget.h b/source/virtualtarget.h index 5cd62f2..d68dba4 100644 --- a/source/virtualtarget.h +++ b/source/virtualtarget.h @@ -1,16 +1,26 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef VIRTUALTARGET_H_ #define VIRTUALTARGET_H_ #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"; } - Action *build() { rebuild=false; return 0; } + VirtualTarget(Builder &, const std::string &); + virtual const char *get_type() const { return "VirtualTarget"; } private: - void check_rebuild(); + virtual void check_rebuild(); + virtual Action *create_action() { return 0; } }; #endif