diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2014-12-12 16:27:49 -0500 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2014-12-12 16:30:31 -0500 |
commit | 397a1eabea5d7bca2f5f9831ac9431b5b85017fc (patch) | |
tree | cb113b817ce4cd76594b1fa2db827b66b7909148 /Makefile | |
parent | 539d2cc2024f494b1e3292d4730bdc96390e1361 (diff) | |
download | libutf8proc-397a1eabea5d7bca2f5f9831ac9431b5b85017fc.tar.gz libutf8proc-397a1eabea5d7bca2f5f9831ac9431b5b85017fc.tar.bz2 |
update graphemes for Unicode 7, add utf8proc_grapheme_break function
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -29,16 +29,19 @@ clean: $(MAKE) -C bench clean update: utf8proc_data.c.new + cp -f utf8proc_data.c.new utf8proc_data.c # real targets -utf8proc_data.c.new: UnicodeData.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt +utf8proc_data.c.new: data_generator.rb UnicodeData.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt $(RUBY) data_generator.rb < UnicodeData.txt > utf8proc_data.c.new UnicodeData.txt: - $(CURL) -O http://www.unicode.org/Public/UNIDATA/UnicodeData.txt +GraphemeBreakProperty.txt: + $(CURL) -O http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakProperty.txt + DerivedCoreProperties.txt: $(CURL) -O http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt @@ -72,10 +75,13 @@ GraphemeBreakTest.txt: $(CURL) http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@ normtest: normtest.c utf8proc.o mojibake.h tests.h - $(cc) normtest.c utf8proc.o -o normtest + $(cc) normtest.c utf8proc.o -o $@ graphemetest: graphemetest.c utf8proc.o mojibake.h tests.h - $(cc) graphemetest.c utf8proc.o -o graphemetest + $(cc) graphemetest.c utf8proc.o -o $@ + +printproperty: printproperty.c utf8proc.o mojibake.h tests.h + $(cc) printproperty.c utf8proc.o -o $@ check: normtest NormalizationTest.txt graphemetest GraphemeBreakTest.txt ./normtest |