X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualtarget.h;h=8f3d95b0c0b540d16ab0b5dafc21db7235de98ef;hb=bc85cc286c8a3f1055f1979a7ff8697cf1b61912;hp=ecc237b7f6ee37e74d47eca5d2c0c72f509efb09;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/virtualtarget.h b/source/virtualtarget.h index ecc237b..8f3d95b 100644 --- a/source/virtualtarget.h +++ b/source/virtualtarget.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2009 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) { } + VirtualTarget(Builder &, const std::string &); + virtual const char *get_type() const { return "VirtualTarget"; } - virtual unsigned count_rebuild(); private: virtual void check_rebuild(); - virtual Action *create_action() { return 0; } + +public: + virtual Task *build(); }; #endif