aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exp/norm/Makefile
blob: f14bc7025d000337cc3837e51253c1fb766fe4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2011 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

include ../../../Make.inc

TARG=exp/norm
GOFILES=\
	tables.go\
	trie.go\

include ../../../Make.pkg

CLEANFILES+=maketables maketesttables

maketables: maketables.go triegen.go
	$(GC) maketables.go triegen.go
	$(LD) -o maketables maketables.$O

maketesttables: maketesttables.go triegen.go
	$(GC) maketesttables.go triegen.go
	$(LD) -o maketesttables maketesttables.$O

tables:	maketables
	./maketables > tables.go
	gofmt -w tables.go

trietesttables: maketesttables
	./maketesttables > triedata_test.go
	gofmt -w triedata_test.go

# Build (but do not run) maketables during testing,
# just to make sure it still compiles.
testshort: maketables maketesttables

# Downloads from www.unicode.org, so not part
# of standard test scripts.
test: testtables

testtables: maketables
	./maketables -test -tables=