From 46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 1 Aug 2006 06:27:43 +0000 Subject: It builds fine, and can build other things as well, like squirrelmud, and clean. I need to fix the dependancy tracking so that it will only check if it needs to, sort of like pymake. And does each file as it gets to it. --- src/build.y | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/build.y') diff --git a/src/build.y b/src/build.y index ecc5d59..4d87a86 100644 --- a/src/build.y +++ b/src/build.y @@ -49,6 +49,7 @@ void yyerror( YYLTYPE *locp, Builder &bld, char const *msg ); %token TOK_PRODUCES "produces" %token TOK_COMMAND "command" %token TOK_CHECK "check" +%token TOK_CLEAN "clean" %token TOK_EOL "end of line" %token ',' ':' '=' @@ -162,6 +163,10 @@ action: TOK_CHECK STRING { bld.add( new Command( Command::cmdCheck, $2 ) ); } + | TOK_CLEAN STRING + { + bld.add( new Command( Command::cmdClean, $2 ) ); + } ; setexpr: STRING '=' STRING -- cgit v1.2.3