github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/src/lib9/utf/Makefile (about) 1 # Copyright 2010 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 # The library is built by the Makefile in the parent directory. 6 # This Makefile only builds mkrunetype. 7 # GOROOT, GOOS, and GOARCH must be set explicitly. 8 9 TARG=mkrunetype 10 11 UnicodeData-%.txt: 12 curl http://www.unicode.org/Public/$*/ucd/UnicodeData.txt >_$@ 13 mv _$@ $@ 14 15 mkrunetype: mkrunetype.c 16 cc -I../../../include -o mkrunetype -L$(GOROOT)/pkg/obj/$(GOOS)_$(GOARCH)/ mkrunetype.c -l9 17 18 runetypebody-%.h: mkrunetype UnicodeData-%.txt 19 mkrunetype -p UnicodeData-$*.txt >_$@ 20 mv _$@ $@ 21 22 CLEANFILES+=UnicodeData.txt 23 24 UNICODE_VERSION=6.3.0 25 26 test: mkrunetype UnicodeData-$(UNICODE_VERSION).txt 27 mkrunetype -c UnicodeData-$(UNICODE_VERSION).txt 28 29 clean: 30 rm -f UnicodeData.txt mkrunetype