aboutsummaryrefslogtreecommitdiff
path: root/src/build.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.y')
-rw-r--r--src/build.y5
1 files changed, 5 insertions, 0 deletions
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 );
49%token TOK_PRODUCES "produces" 49%token TOK_PRODUCES "produces"
50%token TOK_COMMAND "command" 50%token TOK_COMMAND "command"
51%token TOK_CHECK "check" 51%token TOK_CHECK "check"
52%token TOK_CLEAN "clean"
52%token TOK_EOL "end of line" 53%token TOK_EOL "end of line"
53%token ',' ':' '=' 54%token ',' ':' '='
54 55
@@ -162,6 +163,10 @@ action: TOK_CHECK STRING
162 { 163 {
163 bld.add( new Command( Command::cmdCheck, $2 ) ); 164 bld.add( new Command( Command::cmdCheck, $2 ) );
164 } 165 }
166 | TOK_CLEAN STRING
167 {
168 bld.add( new Command( Command::cmdClean, $2 ) );
169 }
165 ; 170 ;
166 171
167setexpr: STRING '=' STRING 172setexpr: STRING '=' STRING