3 This file is part of builder
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
11 #include <msp/fs/path.h>
15 An intermediate base class for targets that represent files. Almost all target
16 classes are derived from this.
18 class FileTarget: public Target
22 Msp::Time::TimeStamp mtime;
25 FileTarget(Builder &, const Package *, const Msp::FS::Path &);
27 const Msp::FS::Path &get_path() const { return path; }
28 const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
29 unsigned get_size() const { return size; }
32 Changes the mtime of the target to the current time.
37 virtual void check_rebuild();