X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=a47eb756f868cc0663939f7d255c6b31f3f15d8d;hb=3e8bf5032e744b5fc3e7680af48f2abacc67addc;hp=48bd7e4438502e466d2c34770b408e7bb55765ea;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/target.h b/source/target.h index 48bd7e4..a47eb75 100644 --- a/source/target.h +++ b/source/target.h @@ -13,7 +13,6 @@ class Task; class Tool; class Target; -typedef std::list 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 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; } /**