+
+ /** Adds a target as a toplevel goal. These are stored as dependencies of
+ the "goals" virtual target. */
+ void add_goal(Target &);
+
+ Target &get_goals() const { return *goals; }
+
+ /** Prepares all toplevel goals for building. If no goals are defined, the
+ "default" target is added as a goal. */
+ void prepare();
+
+ /** Marks all buildable targets to be rebuilt. The graph must be prepared
+ first. */
+ void force_full_rebuild();
+
+ /** Returns the number of targets that are going to be rebuilt. The graph
+ must be prepared first. */
+ unsigned count_rebuild_targets() const;
+
+ /** Returns a target that can be built and is needed for building the goal
+ targets. Null */
+ Target *get_buildable_target() const;