diff options
Diffstat (limited to '')
-rw-r--r-- | src/target.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
6 | #include <string> | 6 | #include <string> |
7 | #include <list> | 7 | #include <list> |
8 | 8 | ||
9 | #include "action.h" | ||
10 | |||
9 | typedef std::list<std::string> StringList; | 11 | typedef std::list<std::string> StringList; |
10 | 12 | ||
11 | class Build; | 13 | class Build; |
@@ -16,6 +18,7 @@ public: | |||
16 | Target(); | 18 | Target(); |
17 | virtual ~Target(); | 19 | virtual ~Target(); |
18 | 20 | ||
21 | void run( Action::eAction nAct, Build &bld ); | ||
19 | virtual void check( Build &bld ) = 0; | 22 | virtual void check( Build &bld ) = 0; |
20 | virtual void clean( Build &bld ) = 0; | 23 | virtual void clean( Build &bld ) = 0; |
21 | 24 | ||
@@ -44,10 +47,17 @@ public: | |||
44 | return lInput; | 47 | return lInput; |
45 | } | 48 | } |
46 | 49 | ||
50 | bool wasRun() | ||
51 | { | ||
52 | return bRun; | ||
53 | } | ||
54 | |||
55 | |||
47 | private: | 56 | private: |
48 | std::string sName; | 57 | std::string sName; |
49 | std::string sRule; | 58 | std::string sRule; |
50 | StringList lInput; | 59 | StringList lInput; |
60 | bool bRun; | ||
51 | }; | 61 | }; |
52 | 62 | ||
53 | #endif | 63 | #endif |