]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Rename BuildInfo::add to update_from
[builder.git] / source / target.h
index 48bd7e4438502e466d2c34770b408e7bb55765ea..a47eb756f868cc0663939f7d255c6b31f3f15d8d 100644 (file)
@@ -13,7 +13,6 @@ class Task;
 class Tool;
 
 class Target;
-typedef std::list<Target *> TargetList;
 
 /**
 Targets make up the build graph.  This class is a base for all target types and
@@ -21,6 +20,9 @@ handles many common tasks.  See also FileTarget and VirtualTarget.
 */
 class Target
 {
+public:
+       typedef std::list<Target *> Dependencies;
+
 protected:
        Builder &builder;
        const Package *package;
@@ -32,7 +34,7 @@ protected:
        bool rebuild;
        std::string rebuild_reason;
 
-       TargetList depends;
+       Dependencies depends;
        bool deps_ready;
 
        bool preparing;
@@ -68,7 +70,7 @@ public:
        bool get_rebuild() const { return rebuild; }
        const std::string &get_rebuild_reason() const { return rebuild_reason; }
        void add_depend(Target *);
-       const TargetList &get_depends() const { return depends; }
+       const Dependencies &get_depends() const { return depends; }
        bool get_depends_ready() const { return deps_ready; }
 
        /**