aboutsummaryrefslogtreecommitdiff
path: root/src/target.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/target.cpp')
-rw-r--r--src/target.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/src/target.cpp b/src/target.cpp
index ea043f9..1846044 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -89,22 +89,22 @@ void Target::buildRequires( Runner &r )
89 { 89 {
90 Bu::FString sReq = (*j).toString(); 90 Bu::FString sReq = (*j).toString();
91 addRequires( sReq ); 91 addRequires( sReq );
92 try 92 /* try
93 { 93 {
94 addDep( r.getContext().getTarget( sReq ) ); 94 addDep( r.getContext().getTarget( sReq ) );
95 } 95 }
96 catch(...) { } 96 catch(...) { }*/
97 } 97 }
98 } 98 }
99 else 99 else
100 { 100 {
101 Bu::FString sReq = v.toString(); 101 Bu::FString sReq = v.toString();
102 addRequires( sReq ); 102 addRequires( sReq );
103 try 103 /* try
104 { 104 {
105 addDep( r.getContext().getTarget( sReq ) ); 105 addDep( r.getContext().getTarget( sReq ) );
106 } 106 }
107 catch(...) { } 107 catch(...) { }*/
108 } 108 }
109 } 109 }
110 r.getContext().popScope(); 110 r.getContext().popScope();
@@ -237,28 +237,6 @@ void Target::process( class Runner &r, const Bu::FString &sProfile )
237 { 237 {
238 } 238 }
239 239
240 buildRequires( r );
241
242 for( TargetList::iterator i = lDeps.begin(); i; i++ )
243 {
244 if( (*i)->bRun )
245 continue;
246
247 // TODO: This is important, in the future, it may be possible for a
248 // target to be triggered by multiple dependant targets, to cover for
249 // this the below mergeUnder should be *TEMPORARY* and the target
250 // that was marged to be reset post processing.
251 (*i)->mergeUnder( hVars );
252 (*i)->process( r, sProfile );
253 }
254 try
255 {
256 bShouldExec = hProfiles.get( sProfile )->shouldExec( r, *this );
257 }
258 catch( Bu::HashException &e )
259 {
260 }
261
262 if( !bShouldExec ) 240 if( !bShouldExec )
263 { 241 {
264 r.getContext().getView()->skipTarget( sProfile, *this ); 242 r.getContext().getView()->skipTarget( sProfile, *this );