summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@mit.edu>2014-07-18 12:12:19 -0400
committerSteven G. Johnson <stevenj@mit.edu>2014-07-18 12:12:19 -0400
commita5aeb49e2081f182788524dd5821ac0438af59f8 (patch)
tree6799b73add31d3b0fe8a0b00777ccdb5f22213dc /Makefile
parentdd35a8530d4274ce7c4c0c080a66b283141b9454 (diff)
parentb81326e82fba0c55e2c8f8cb2710c32611d2ee0f (diff)
downloadlibutf8proc-a5aeb49e2081f182788524dd5821ac0438af59f8.tar.gz
libutf8proc-a5aeb49e2081f182788524dd5821ac0438af59f8.tar.bz2
Merge pull request #9 from JuliaLang/cjh/markdata
Update data tables to Unicode 7.0.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 60f0423..a9d1aaa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
# libmojibake Makefile
+CURL=curl
+RUBY=ruby
# settings
@@ -16,8 +18,26 @@ c-library: libmojibake.a libmojibake.so
clean:
rm -f utf8proc.o libmojibake.a libmojibake.so
+update: utf8proc_data.c.new
+
# real targets
+utf8proc_data.c.new: UnicodeData.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
+
+DerivedCoreProperties.txt:
+ $(CURL) -O http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt
+
+CompositionExclusions.txt:
+ $(CURL) -O http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt
+
+CaseFolding.txt:
+ $(CURL) -O http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
+
+
utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
$(cc) -c -o utf8proc.o utf8proc.c