+ /**
+ If this target is a proxy for another (such as Install or Symlink), return
+ that target. Otherwise, return the target itself.
+
+ Implementors should call the function recursively to find the final target.
+ */
+ virtual Target *get_real_target() { return this; }
+
+ void set_tool(const Tool &);
+ const Tool *get_tool() const { return tool; }
+
+ bool is_buildable() const { return tool!=0; }
+ bool needs_rebuild() const { return state>PREPARING && state<UPTODATE; }