diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-07 22:49:40 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-07 22:49:40 +0000 |
commit | 71cc260a3ca6d3d0594fd4cadb0711ae3f142932 (patch) | |
tree | 0b270638890c3b3d45e998cf50cf895f2cad6af5 /src/targetfile.cpp | |
parent | fe5de4801bfe7926e116585e2f71399cb664dfb2 (diff) | |
download | build-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.cpp | 16 |
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 | ||
4 | PluginInterface2(file, TargetFile, Target, "Mike Buland", 0, 1 ); | 6 | PluginInterface2(file, TargetFile, Target, "Mike Buland", 0, 1 ); |
5 | 7 | ||
@@ -10,3 +12,17 @@ TargetFile::TargetFile() | |||
10 | TargetFile::~TargetFile() | 12 | TargetFile::~TargetFile() |
11 | { | 13 | { |
12 | } | 14 | } |
15 | |||
16 | void 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 | |||
24 | void TargetFile::clean( Build &bld ) | ||
25 | { | ||
26 | printf("Target file cleaning: %s\n", getName().c_str() ); | ||
27 | } | ||
28 | |||