X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=ab9134aff85c2b4e34ab4c9eacd719c4e8ccc06d;hb=e36dac301c41799d374b6d537129b2be63f05fb2;hp=f0ec0f264916c56da0e32af9b1aa6f003ab175d6;hpb=0d80cabf649b931b26e7055385156c75a7385d35;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;