summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-03-13 03:31:11 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-03-13 03:31:11 +0800
commit3d8980c53f2b75682199081b5cac37d4d07e3c6b (patch)
treeb7f42d8837b53de8f3f1f985f44d5c66cefdb9f5
parentccb0e71c6256622702ebe70e9c902f2d40b1f339 (diff)
downloadgo-3d8980c53f2b75682199081b5cac37d4d07e3c6b.tar.gz
build: update Makefile to track source code dependencies better
Also update .hgignore to ignore y.output. R=rsc CC=golang-dev http://codereview.appspot.com/5797061
-rw-r--r--.hgignore1
-rw-r--r--src/cmd/gc/Makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/.hgignore b/.hgignore
index 741d7c61b..b140555fd 100644
--- a/.hgignore
+++ b/.hgignore
@@ -33,6 +33,7 @@ misc/goplay/goplay
misc/osx/*.pkg
misc/osx/*.dmg
src/cmd/6a/6a
+src/cmd/?a/y.output
src/cmd/?l/enam.c
src/cmd/cc/y.output
src/cmd/dist/dist.dSYM
diff --git a/src/cmd/gc/Makefile b/src/cmd/gc/Makefile
index df34c05b2..58e25faaf 100644
--- a/src/cmd/gc/Makefile
+++ b/src/cmd/gc/Makefile
@@ -6,7 +6,7 @@ include ../../Make.dist
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
# 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