aboutsummaryrefslogtreecommitdiff
path: root/src/target.cpp
blob: 3150c3874254eca160a9d093295a144ab75dfeac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "target.h"
#include "build.h"
#include "viewer.h"

Target::Target() :
	bRun( false )
{
}

Target::~Target()
{
}

void Target::run( Action::eAction nAct, Build &bld )
{
	bRun = true;

	bld.getView()->beginCommand( nAct, sName );
	switch( nAct )
	{
		case Action::actCheck:
			check( bld );
			break;

		case Action::actClean:
			clean( bld );
			break;
	}
	bld.getView()->endCommand();
}