diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 15:21:53 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 15:21:53 +0000 |
commit | d5b78aeaa9af689b52046eb5577624fb6d031835 (patch) | |
tree | 43271fd845413fc1913e17e4799b9ccc4aa6002b /src/target.cpp | |
parent | 2b24eab3703bedb2aa4f1329fc3c919c869b6e85 (diff) | |
download | build-d5b78aeaa9af689b52046eb5577624fb6d031835.tar.gz build-d5b78aeaa9af689b52046eb5577624fb6d031835.tar.bz2 build-d5b78aeaa9af689b52046eb5577624fb6d031835.tar.xz build-d5b78aeaa9af689b52046eb5577624fb6d031835.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/target.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/target.cpp b/src/target.cpp index 834dbaa..a26f76f 100644 --- a/src/target.cpp +++ b/src/target.cpp | |||
@@ -1,6 +1,7 @@ | |||
1 | #include "target.h" | 1 | #include "target.h" |
2 | 2 | ||
3 | Target::Target() | 3 | Target::Target() : |
4 | bRun( false ) | ||
4 | { | 5 | { |
5 | } | 6 | } |
6 | 7 | ||
@@ -8,3 +9,19 @@ Target::~Target() | |||
8 | { | 9 | { |
9 | } | 10 | } |
10 | 11 | ||
12 | void Target::run( Action::eAction nAct, Build &bld ) | ||
13 | { | ||
14 | bRun = true; | ||
15 | |||
16 | switch( nAct ) | ||
17 | { | ||
18 | case Action::actCheck: | ||
19 | check( bld ); | ||
20 | break; | ||
21 | |||
22 | case Action::actClean: | ||
23 | clean( bld ); | ||
24 | break; | ||
25 | } | ||
26 | } | ||
27 | |||