"Fossies" - the Fresh Open Source Software Archive

Member "utf8proc-2.4.0/data/Makefile" (11 May 2019, 2437 Bytes) of package /linux/privat/utf8proc-2.4.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 2.3.0_vs_2.4.0.

    1 # Unicode data generation rules.  Except for the test data files, most
    2 # users will not use these Makefile rules, which are primarily to re-generate
    3 # unicode_data.c when we get a new Unicode version or charwidth data; they
    4 # require ruby and julia to be installed.
    5 
    6 # programs
    7 CURL=curl
    8 RUBY=ruby
    9 PERL=perl
   10 MAKE=make
   11 JULIA=julia
   12 CURLFLAGS = --retry 5 --location
   13 
   14 .PHONY: clean
   15 
   16 .DELETE_ON_ERROR:
   17 
   18 utf8proc_data.c.new: data_generator.rb UnicodeData.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt CharWidths.txt emoji-data.txt
   19 	$(RUBY) data_generator.rb < UnicodeData.txt > $@
   20 
   21 CharWidths.txt: charwidths.jl EastAsianWidth.txt
   22 	$(JULIA) charwidths.jl > $@
   23 
   24 # Unicode data version (must also update utf8proc_unicode_version function)
   25 UNICODE_VERSION=12.1.0
   26 
   27 # Unicode emoji version (managed separately from UNICODE_VERSION)
   28 UNICODE_EMOJI_VERSION=12.0
   29 
   30 UnicodeData.txt:
   31 	$(CURL) $(CURLFLAGS) -o $@ -O http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt
   32 
   33 EastAsianWidth.txt:
   34 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/EastAsianWidth.txt
   35 
   36 GraphemeBreakProperty.txt:
   37 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakProperty.txt
   38 
   39 DerivedCoreProperties.txt:
   40 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/DerivedCoreProperties.txt
   41 
   42 CompositionExclusions.txt:
   43 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CompositionExclusions.txt
   44 
   45 CaseFolding.txt:
   46 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CaseFolding.txt
   47 
   48 NormalizationTest.txt:
   49 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/NormalizationTest.txt
   50 
   51 GraphemeBreakTest.txt:
   52 	$(CURL) $(CURLFLAGS) $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@
   53 
   54 emoji-data.txt:
   55 	$(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://unicode.org/Public/emoji/$(UNICODE_EMOJI_VERSION)/emoji-data.txt
   56 
   57 clean:
   58 	rm -f UnicodeData.txt EastAsianWidth.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt CharWidths.txt emoji-data.txt
   59 	rm -f utf8proc_data.c.new