aboutsummaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/command.cpp b/src/command.cpp
deleted file mode 100644
index ea5ade3..0000000
--- a/src/command.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
1#include "command.h"
2#include "builder.h"
3#include "target.h"
4
5Command::Command( CmdType cmd, const char *sTarget ) :
6 nType( cmd ),
7 sTarget( sTarget )
8{
9}
10
11Command::~Command()
12{
13}
14
15void Command::debug()
16{
17 static const char *cmdt[]={"Check", "Clean"};
18 printf(" command: %s %s\n", cmdt[ nType ], sTarget.getString() );
19}
20
21void Command::execute( Builder &bld )
22{
23 switch( nType )
24 {
25 case cmdCheck:
26 bld.getTarget( sTarget )->check( bld );
27 break;
28
29 case cmdClean:
30 bld.getTarget( sTarget )->clean( bld );
31 break;
32 }
33}
34