diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-06-22 23:08:03 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-06-22 23:08:03 +0100 |
commit | 567390f59da4e9ae0adc3fc22b1be4ebbf6b7b62 (patch) | |
tree | 919e5492e9dec0d206a1bcdfc80f17c444df26e4 /utils/Makefile | |
parent | 54e06e7d582b36b8aca463cac5f63e0501c898dc (diff) | |
download | netsurf-567390f59da4e9ae0adc3fc22b1be4ebbf6b7b62.tar.gz netsurf-567390f59da4e9ae0adc3fc22b1be4ebbf6b7b62.tar.bz2 |
allow idna_props header to be regenerated
add commandline procesing to the idna header generation tool
add make rules to obtain idna source files and convert them into a header
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/Makefile b/utils/Makefile index a6d2f1248..430edf9b4 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -63,6 +63,26 @@ $(TOOLROOT)/convert_image: utils/convert_image.c $(TOOLROOT)/created # Build too to perform font conversion +# $(TOOLROOT)/convert_font: utils/convert_font.c $(TOOLROOT)/created $(VQ)echo "BUILD CC: $@" $(Q)$(BUILD_CC) $(BUILD_CFLAGS) -o $@ $< + + +# idna +# +IDNA_UNICODE_MAJOR=11 + +utils/DerivedJoiningType.txt: + curl -o $@ "https://www.unicode.org/Public/$(IDNA_UNICODE_MAJOR).0.0/ucd/extracted/DerivedJoiningType.txt" + +utils/IdnaMappingTable.txt: + curl -o $@ "https://www.unicode.org/Public/idna/$(IDNA_UNICODE_MAJOR).0.0/IdnaMappingTable.txt" + +utils/idna-tables-properties.csv: + curl -o $@ "https://www.iana.org/assignments/idna-tables-$(IDNA_UNICODE_MAJOR).0.0/idna-tables-properties.csv" + + +utils/idna_props.h: utils/DerivedJoiningType.txt utils/idna-tables-properties.csv + $(VQ)echo " IDNA: $@" + $(Q)$(PERL) utils/idna-derived-props-gen.pl -o $@ -p utils/idna-tables-properties.csv -j utils/DerivedJoiningType.txt |