aboutsummaryrefslogtreecommitdiff
path: root/src/targetfile.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-07 22:49:40 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-07 22:49:40 +0000
commit71cc260a3ca6d3d0594fd4cadb0711ae3f142932 (patch)
tree0b270638890c3b3d45e998cf50cf895f2cad6af5 /src/targetfile.cpp
parentfe5de4801bfe7926e116585e2f71399cb664dfb2 (diff)
downloadbuild-71cc260a3ca6d3d0594fd4cadb0711ae3f142932.tar.gz
build-71cc260a3ca6d3d0594fd4cadb0711ae3f142932.tar.bz2
build-71cc260a3ca6d3d0594fd4cadb0711ae3f142932.tar.xz
build-71cc260a3ca6d3d0594fd4cadb0711ae3f142932.zip
About to implement Rule, the heart of the porform generation system. Once
that's done, we can actually run the performs, and, most likely build things.
Diffstat (limited to 'src/targetfile.cpp')
-rw-r--r--src/targetfile.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/targetfile.cpp b/src/targetfile.cpp
index fee41c9..8f6651e 100644
--- a/src/targetfile.cpp
+++ b/src/targetfile.cpp
@@ -1,5 +1,7 @@
1#include "targetfile.h" 1#include "targetfile.h"
2#include "plugger.h" 2#include "plugger.h"
3#include "rule.h"
4#include "build.h"
3 5
4PluginInterface2(file, TargetFile, Target, "Mike Buland", 0, 1 ); 6PluginInterface2(file, TargetFile, Target, "Mike Buland", 0, 1 );
5 7
@@ -10,3 +12,17 @@ TargetFile::TargetFile()
10TargetFile::~TargetFile() 12TargetFile::~TargetFile()
11{ 13{
12} 14}
15
16void TargetFile::check( Build &bld )
17{
18 printf("Target file checking: %s\n", getName().c_str() );
19
20 Rule *pRule = bld.getRule( getRule() );
21 pRule->execute();
22}
23
24void TargetFile::clean( Build &bld )
25{
26 printf("Target file cleaning: %s\n", getName().c_str() );
27}
28