1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:11:25 -07:00

build: update Makefile to track source code dependencies better

Also update .hgignore to ignore y.output.

R=rsc
CC=golang-dev
https://golang.org/cl/5797061
This commit is contained in:
Shenghou Ma 2012-03-13 03:31:11 +08:00
parent d3191f5c2b
commit 0359621241
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ misc/goplay/goplay
misc/osx/*.pkg misc/osx/*.pkg
misc/osx/*.dmg misc/osx/*.dmg
src/cmd/6a/6a src/cmd/6a/6a
src/cmd/?a/y.output
src/cmd/?l/enam.c src/cmd/?l/enam.c
src/cmd/cc/y.output src/cmd/cc/y.output
src/cmd/dist/dist.dSYM src/cmd/dist/dist.dSYM

View File

@ -6,7 +6,7 @@ include ../../Make.dist
install: y.tab.h builtin.c install: y.tab.h builtin.c
y.tab.h: go.y y.tab.h: go.y go.errors bisonerrors
bison -v -y -d go.y bison -v -y -d go.y
# make yystate global, yytname mutable # make yystate global, yytname mutable
cat y.tab.c | sed '/ int yystate;/d; s/int yychar;/int yychar, yystate;/; s/static const char \*const yytname/const char *yytname/; s/char const \*yymsgp/char *yymsgp/' >y1.tab.c cat y.tab.c | sed '/ int yystate;/d; s/int yychar;/int yychar, yystate;/; s/static const char \*const yytname/const char *yytname/; s/char const \*yymsgp/char *yymsgp/' >y1.tab.c