X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualtarget.h;h=aec308016983fec9d3c463ebdd91270b50160389;hb=7aeaa4ba965f596edad438c02e345a8843f7469a;hp=4f064ba819a3c2127005af29f91219878fade55c;hpb=9976a7bdf0e53966dce4bc828a37eb42de0223e3;p=builder.git diff --git a/source/virtualtarget.h b/source/virtualtarget.h index 4f064ba..aec3080 100644 --- a/source/virtualtarget.h +++ b/source/virtualtarget.h @@ -1,15 +1,25 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 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) { } + 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(); + Action *build() { rebuild=false; return 0; } + unsigned count_rebuild(); private: void check_rebuild(); };