From 8ebc3f17961ef6a0cf708cc6bdca948d77817ee0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 21 Dec 2009 18:59:32 +0000 Subject: Wow, it's much more general now, I like that. --- src/action.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/action.cpp') diff --git a/src/action.cpp b/src/action.cpp index 23c24cd..8b10641 100644 --- a/src/action.cpp +++ b/src/action.cpp @@ -80,6 +80,31 @@ Action *Action::genDefaultClean() return pRet; } +Action *Action::genDefaultCleanAll() +{ + Ast *pAst = new Ast(); + pAst->addNode( AstNode::typeActionDef ); + pAst->openBranch(); + pAst->addNode( AstNode::typeString, "clean-all" ); + pAst->openBranch(); + pAst->addNode( AstNode::typeProcessTarget ); + pAst->openBranch(); + pAst->addNode( AstNode::typeString, "clean" ); + pAst->openBranch(); + pAst->addNode( AstNode::typeFunction ); + pAst->openBranch(); + pAst->addNode( AstNode::typeString, "targets" ); + pAst->closeNode(); + pAst->closeNode(); + pAst->closeNode(); + Action *pRet = new Action( + dynamic_cast( *pAst->getNodeBegin() ) + ); + pRet->pAst = pAst; + + return pRet; +} + Action *Action::genDefaultDefault() { Ast *pAst = new Ast(); -- cgit v1.2.3