X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstall.h;h=764d9a19bc20f8547ed484e281974eb840c32931;hb=66d1078c04849ec17a7343d0494d6ed087e04318;hp=41b43828e8a3304e546084d20756e7be33f3f75f;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/install.h b/source/install.h index 41b4382..764d9a1 100644 --- a/source/install.h +++ b/source/install.h @@ -9,21 +9,25 @@ Distributed under the LGPL #define INSTALL_H_ #include "sourcepackage.h" -#include "target.h" +#include "filetarget.h" /** Represents the installation of a file. */ -class Install: public Target +class Install: public FileTarget { +private: + FileTarget &source; + public: - Install(Builder &, const SourcePackage &, Target &); + Install(Builder &, const SourcePackage &, FileTarget &); virtual const char *get_type() const { return "Install"; } + FileTarget &get_source() const { return source; } private: virtual void check_rebuild(); virtual Action *create_action(); - static std::string generate_target_name(const Target &); + static Msp::FS::Path generate_target_path(const FileTarget &); }; #endif