summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@mit.edu>2014-12-12 16:27:49 -0500
committerSteven G. Johnson <stevenj@mit.edu>2014-12-12 16:30:31 -0500
commit397a1eabea5d7bca2f5f9831ac9431b5b85017fc (patch)
treecb113b817ce4cd76594b1fa2db827b66b7909148 /Makefile
parent539d2cc2024f494b1e3292d4730bdc96390e1361 (diff)
downloadlibutf8proc-397a1eabea5d7bca2f5f9831ac9431b5b85017fc.tar.gz
libutf8proc-397a1eabea5d7bca2f5f9831ac9431b5b85017fc.tar.bz2
update graphemes for Unicode 7, add utf8proc_grapheme_break function
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 332d13b..7f3aaa0 100644
--- a/Makefile
+++ b/Makefile
@@ -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