]> Cypherpunks repositories - gostls13.git/commitdiff
unicode: use go generate instead of make to create tables.go
authorRob Pike <r@golang.org>
Tue, 26 Aug 2014 21:43:03 +0000 (14:43 -0700)
committerRob Pike <r@golang.org>
Tue, 26 Aug 2014 21:43:03 +0000 (14:43 -0700)
LGTM=mpvl, rsc
R=mpvl, rsc
CC=golang-codereviews
https://golang.org/cl/135820043

src/pkg/unicode/Makefile [deleted file]
src/pkg/unicode/letter.go

diff --git a/src/pkg/unicode/Makefile b/src/pkg/unicode/Makefile
deleted file mode 100644 (file)
index aba12a0..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 2009 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.
-
-maketables: maketables.go
-       go build maketables.go
-
-tables:        maketables
-       ./maketables --tables=all -output tables.go
-
-# Downloads from www.unicode.org, so not part
-# of standard test scripts.
-testtables: maketables
-       @echo '***' Be sure to make tables and go install first
-       ./maketables -test
index 977bd2b3b0594d17d1318975dd1acc4d5cb42228..7fe4241eddf419d381527f09e1272278c69b3df4 100644 (file)
@@ -6,6 +6,9 @@
 // Unicode code points.
 package unicode
 
+// Tables are regenerated each time we update the Unicode version.
+//go:generate go run maketables.go -tables=all -output tables.go
+
 const (
        MaxRune         = '\U0010FFFF' // Maximum valid Unicode code point.
        ReplacementChar = '\uFFFD'     // Represents invalid code points.