X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstall.h;h=84c2b23ef49cb9189c75fd469ba48cc8a1dcac0d;hb=bdc8b6638b486aa668b4a9c6c5cce5f6b5f18222;hp=b50bb7fe613b8f15e558008b6233a14a18fd7be0;hpb=b5ad62c2c4c7eeadd881e3f157bde96e4dd2cc0e;p=builder.git diff --git a/source/install.h b/source/install.h index b50bb7f..84c2b23 100644 --- a/source/install.h +++ b/source/install.h @@ -1,6 +1,14 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef INSTALL_H_ #define INSTALL_H_ +#include "sourcepackage.h" #include "target.h" /** @@ -9,12 +17,13 @@ Represents the installation of a file. class Install: public Target { public: - Install(Builder &, const Package &, Target &); + Install(Builder &, const SourcePackage &, Target &); const char *get_type() const { return "Install"; } void check_rebuild(); - Action *build(); private: - std::string generate_target_name(const Target &); + virtual Action *create_action(); + + static std::string generate_target_name(const Target &); }; #endif