6 #include <msp/time/timestamp.h>
15 const std::string &get_name() const { return name; }
16 Target *get_buildable_target();
17 bool get_rebuild() const { return rebuild; }
18 const std::string &get_rebuild_reason() const { return rebuild_reason; }
19 const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
20 const Msp::Time::TimeStamp &get_virtual_mtime() const { return vmtime; }
21 virtual const char *get_type() const=0;
22 const std::list<Target *> &get_depends() const { return depends; }
23 void add_depend(Target *);
24 virtual void find_depends()=0;
25 virtual void prepare();
26 virtual Action *build()=0;
30 const Package *package;
34 std::string rebuild_reason;
35 Msp::Time::TimeStamp mtime;
36 Msp::Time::TimeStamp vmtime;
37 std::list<Target *> depends;
38 std::list<Target *> rdepends;
42 Target(Builder &, const Package *, const std::string &);
43 void mark_rebuild(const std::string &);
44 virtual void check_rebuild();
45 Action *build(Action *);
46 virtual void build_done();