From d5b78aeaa9af689b52046eb5577624fb6d031835 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 21 Sep 2006 15:21:53 +0000 Subject: Auto target chaining based on requirements is now in place. This means that if a requirement is set for a target that needs to be built, and that requirement is another target, that target will be processed when it is needed. --- src/target.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/target.h') diff --git a/src/target.h b/src/target.h index 5325965..f51e0e0 100644 --- a/src/target.h +++ b/src/target.h @@ -6,6 +6,8 @@ #include #include +#include "action.h" + typedef std::list StringList; class Build; @@ -16,6 +18,7 @@ public: Target(); virtual ~Target(); + void run( Action::eAction nAct, Build &bld ); virtual void check( Build &bld ) = 0; virtual void clean( Build &bld ) = 0; @@ -44,10 +47,17 @@ public: return lInput; } + bool wasRun() + { + return bRun; + } + + private: std::string sName; std::string sRule; StringList lInput; + bool bRun; }; #endif -- cgit v1.2.3