2010-10-31 18:46:26 -06:00
|
|
|
# Copyright 2010 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.
|
|
|
|
|
|
|
|
# The library is built by the Makefile in the parent directory.
|
|
|
|
# This Makefile only builds mkrunetype.
|
2012-03-06 19:51:49 -07:00
|
|
|
# GOROOT, GOOS, and GOARCH must be set explicitly.
|
2010-10-31 18:46:26 -06:00
|
|
|
|
|
|
|
TARG=mkrunetype
|
|
|
|
|
2011-01-31 10:38:54 -07:00
|
|
|
UnicodeData-%.txt:
|
|
|
|
curl http://www.unicode.org/Public/$*/ucd/UnicodeData.txt >_$@
|
|
|
|
mv _$@ $@
|
|
|
|
|
2012-03-06 19:51:49 -07:00
|
|
|
mkrunetype: mkrunetype.c
|
|
|
|
cc -I../../../include -o mkrunetype -L$(GOROOT)/pkg/obj/$(GOOS)_$(GOARCH)/ mkrunetype.c -l9
|
|
|
|
|
2011-01-31 10:38:54 -07:00
|
|
|
runetypebody-%.c: mkrunetype UnicodeData-%.txt
|
|
|
|
mkrunetype -p UnicodeData-$*.txt >_$@
|
|
|
|
mv _$@ $@
|
|
|
|
|
|
|
|
CLEANFILES+=UnicodeData.txt
|
|
|
|
|
|
|
|
UNICODE_VERSION=6.0.0
|
|
|
|
|
|
|
|
test: mkrunetype UnicodeData-$(UNICODE_VERSION).txt
|
|
|
|
mkrunetype -c UnicodeData-$(UNICODE_VERSION).txt
|
|
|
|
|
2012-03-06 19:51:49 -07:00
|
|
|
clean:
|
|
|
|
rm -f UnicodeData.txt mkrunetype
|