aboutsummaryrefslogtreecommitdiff
path: root/src/build.y
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-01 06:27:43 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-01 06:27:43 +0000
commit46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7 (patch)
tree795ace6809cbba6019f5517b345a5ab20fed5b9a /src/build.y
parent935bc7d5223883d87f58a6798f4a0ade7df95afc (diff)
downloadbuild-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.gz
build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.bz2
build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.xz
build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.zip
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.
Diffstat (limited to '')
-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