aboutsummaryrefslogtreecommitdiff
path: root/src/targetfile.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-10 22:27:37 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-10 22:27:37 +0000
commit97d529fac68105f0d3d34c699a4ac10489c705e8 (patch)
tree409473d54238525c7b41347458448a19c909ad8a /src/targetfile.cpp
parent47cda1de3cfde56d8a8a69d535d38309bc2b7981 (diff)
downloadbuild-97d529fac68105f0d3d34c699a4ac10489c705e8.tar.gz
build-97d529fac68105f0d3d34c699a4ac10489c705e8.tar.bz2
build-97d529fac68105f0d3d34c699a4ac10489c705e8.tar.xz
build-97d529fac68105f0d3d34c699a4ac10489c705e8.zip
Almost done tweaking the variable system, it needed support for local, or
"extra" variables.
Diffstat (limited to '')
-rw-r--r--src/targetfile.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/targetfile.cpp b/src/targetfile.cpp
index 8f6651e..dc9e597 100644
--- a/src/targetfile.cpp
+++ b/src/targetfile.cpp
@@ -18,7 +18,23 @@ void TargetFile::check( Build &bld )
18 printf("Target file checking: %s\n", getName().c_str() ); 18 printf("Target file checking: %s\n", getName().c_str() );
19 19
20 Rule *pRule = bld.getRule( getRule() ); 20 Rule *pRule = bld.getRule( getRule() );
21 pRule->execute(); 21 PerformList lPerf;
22 StringList lFinal = pRule->execute( bld, getInput(), lPerf );
23
24 printf("Input: ");
25 for( StringList::iterator i = getInput().begin();
26 i != getInput().end(); i++ )
27 {
28 if( i != getInput().begin() ) printf(", ");
29 printf("%s", (*i).c_str() );
30 }
31 printf("\nFinal: ");
32 for( StringList::iterator i = lFinal.begin(); i != lFinal.end(); i++ )
33 {
34 if( i != lFinal.begin() ) printf(", ");
35 printf("%s", (*i).c_str() );
36 }
37 printf("\n");
22} 38}
23 39
24void TargetFile::clean( Build &bld ) 40void TargetFile::clean( Build &bld )