]> Cypherpunks repositories - gostls13.git/commitdiff
build: update Makefile to track source code dependencies better
authorShenghou Ma <minux.ma@gmail.com>
Mon, 12 Mar 2012 19:31:11 +0000 (03:31 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 12 Mar 2012 19:31:11 +0000 (03:31 +0800)
      Also update .hgignore to ignore y.output.

R=rsc
CC=golang-dev
https://golang.org/cl/5797061

.hgignore
src/cmd/gc/Makefile

index 741d7c61b2df39030c9674d65cf3ea422a4e16ad..b140555fd9129f4283806d0e669e60d820deb25e 100644 (file)
--- 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
index df34c05b273d0a21c2c10103d77eb054ab2afafb..58e25faaf986be968919e7c4d8c71a2dd68881b6 100644 (file)
@@ -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