X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualtarget.h;h=8f3d95b0c0b540d16ab0b5dafc21db7235de98ef;hb=74ea8208bb1aa1d9afc9657a4cdfac6714241887;hp=67c3014b719bd20f4cfca09fea7600cf3fff958a;hpb=be8a901dfc026f61db46d5d64a41cecc619bc97d;p=builder.git diff --git a/source/virtualtarget.h b/source/virtualtarget.h index 67c3014..8f3d95b 100644 --- a/source/virtualtarget.h +++ b/source/virtualtarget.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef VIRTUALTARGET_H_ #define VIRTUALTARGET_H_ @@ -16,12 +9,14 @@ 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"; } - unsigned count_rebuild(); + VirtualTarget(Builder &, const std::string &); + + virtual const char *get_type() const { return "VirtualTarget"; } private: - void check_rebuild(); - virtual Action *create_action() { return 0; } + virtual void check_rebuild(); + +public: + virtual Task *build(); }; #endif