X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=ab9134aff85c2b4e34ab4c9eacd719c4e8ccc06d;hb=b0eb979b0dc79269cb3bb5bb2e67ef4e80689cfe;hp=f0ec0f264916c56da0e32af9b1aa6f003ab175d6;hpb=cbb3c4c6aab7b04f7bd2178fb8f12846d532a472;p=builder.git diff --git a/source/target.h b/source/target.h index f0ec0f2..ab9134a 100644 --- a/source/target.h +++ b/source/target.h @@ -20,8 +20,9 @@ public: virtual const char *get_type() const=0; const std::list &get_depends() const { return depends; } const Package *get_package() const { return package; } + bool get_depends_ready() const { return deps_ready; } void add_depend(Target *); - virtual void find_depends()=0; + virtual void find_depends() { deps_ready=true; } virtual void prepare(); virtual Action *build()=0; void reset_count() { counted=false; } @@ -38,6 +39,7 @@ protected: Msp::Time::TimeStamp mtime; std::list depends; std::list rdepends; + bool deps_ready; bool prepared; bool buildable; bool counted;