diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2015-10-29 21:45:52 -0400 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2015-10-29 21:45:52 -0400 |
commit | 1e411777c592a1ccd99458211df7d2013289bbf9 (patch) | |
tree | 5c8a37056cc9223163a81c0b9e8f80c3950b0d52 /data/Makefile | |
parent | e52c8c4c8f0f10aa71c8dbd633a359895157c871 (diff) | |
parent | d32140821042a27b1ffa033c429f381a3bc95d4b (diff) | |
download | libutf8proc-1e411777c592a1ccd99458211df7d2013289bbf9.tar.gz libutf8proc-1e411777c592a1ccd99458211df7d2013289bbf9.tar.bz2 |
Merge pull request #56 from petercolberg/master
Fix Travis build and improve build reproducibility
Diffstat (limited to 'data/Makefile')
-rw-r--r-- | data/Makefile | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/data/Makefile b/data/Makefile index ebe67ae..37bdd74 100644 --- a/data/Makefile +++ b/data/Makefile @@ -9,12 +9,9 @@ RUBY=ruby PERL=perl MAKE=make JULIA=julia +FONTFORGE=fontforge CURLFLAGS = --retry 5 --location -# use JuliaLang caching (https://github.com/staticfloat/cache.julialang.org) -# so that Travis builds do not depend on anyone's flaky servers but our own -URLCACHE=https://cache.e.ip.saba.us/ - .PHONY: clean .DELETE_ON_ERROR: @@ -25,14 +22,17 @@ utf8proc_data.c.new: data_generator.rb UnicodeData.txt GraphemeBreakProperty.txt # GNU Unifont version for font metric calculations: UNIFONT_VERSION=8.0.01 -unifont-$(UNIFONT_VERSION).ttf: - $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)http://unifoundry.com/pub/unifont-$(UNIFONT_VERSION)/font-builds/unifont-$(UNIFONT_VERSION).ttf +unifont.ttf: + $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont-$(UNIFONT_VERSION).ttf + +unifont_upper.ttf: + $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont_upper-$(UNIFONT_VERSION).ttf -unifont_upper-$(UNIFONT_VERSION).ttf: - $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)http://unifoundry.com/pub/unifont-$(UNIFONT_VERSION)/font-builds/unifont_upper-$(UNIFONT_VERSION).ttf +%.sfd: %.ttf + $(FONTFORGE) -lang=ff -c "Open(\"$<\");Save(\"$@\");Quit(0);" -CharWidths.txt: charwidths.jl unifont-$(UNIFONT_VERSION).ttf unifont_upper-$(UNIFONT_VERSION).ttf EastAsianWidth.txt - UNIFONT_VERSION=$(UNIFONT_VERSION) $(JULIA) charwidths.jl > $@ +CharWidths.txt: charwidths.jl unifont.sfd unifont_upper.sfd EastAsianWidth.txt + $(JULIA) charwidths.jl > $@ UnicodeData.txt: $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/UnicodeData.txt |