4 #include <msp/fs/path.h>
8 An intermediate base class for targets that represent files. Almost all target
9 classes are derived from this.
11 class FileTarget: public Target
15 Msp::Time::TimeStamp mtime;
18 FileTarget(Builder &, const Package *, const Msp::FS::Path &);
20 const Msp::FS::Path &get_path() const { return path; }
21 const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
22 unsigned get_size() const { return size; }
25 Changes the mtime of the target to the current time.
30 virtual void check_rebuild();
32 static std::string generate_name(const Package *, const Msp::FS::Path &);