1
0
mirror of https://github.com/golang/go synced 2024-11-22 08:24:41 -07:00

unicode: build maketables during build, take 2

The "all:" target is the default for running gomake
by hand, but it is not used during the build.
The build runs make install and make test.

Save the build of maketables for the test phase
so that the packages it needs will have been
installed already.

R=r, r2
CC=golang-dev
https://golang.org/cl/4121043
This commit is contained in:
Russ Cox 2011-01-31 11:50:04 -05:00
parent 7400be87d8
commit ad00644434

View File

@ -13,6 +13,8 @@ GOFILES=\
include ../../Make.pkg include ../../Make.pkg
CLEANFILES+=maketables
maketables: maketables.go maketables: maketables.go
$(GC) maketables.go $(GC) maketables.go
$(LD) -o maketables maketables.$O $(LD) -o maketables maketables.$O
@ -21,9 +23,12 @@ tables: maketables
./maketables --tables=all > tables.go ./maketables --tables=all > tables.go
gofmt -w tables.go gofmt -w tables.go
# Build (but do not run) maketables during testing,
# just to make sure it still compiles.
test: maketables
# Downloads from www.unicode.org, so not part
# of standard test scripts.
testtables: maketables testtables: maketables
@echo '***' Be sure to make tables and make install first @echo '***' Be sure to make tables and make install first
./maketables -test ./maketables -test
all: maketables
CLEANFILES+=maketables