X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualtarget.h;h=67c3014b719bd20f4cfca09fea7600cf3fff958a;hb=be8a901dfc026f61db46d5d64a41cecc619bc97d;hp=83ac8f93ceca649fbffba945e01327b662465736;hpb=59ac0a44d6edf179c01604c6ced744873213f855;p=builder.git diff --git a/source/virtualtarget.h b/source/virtualtarget.h index 83ac8f9..67c3014 100644 --- a/source/virtualtarget.h +++ b/source/virtualtarget.h @@ -1,17 +1,27 @@ +/* $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"; } - void find_depends() { } - Action *build() { rebuild=false; return 0; } + unsigned count_rebuild(); private: void check_rebuild(); + virtual Action *create_action() { return 0; } }; #endif