1#!/usr/bin/env -S make -f 2 3all: packtab \ 4 hb-ot-shape-complex-arabic-joining-list.hh \ 5 hb-ot-shape-complex-arabic-table.hh hb-unicode-emoji-table.hh \ 6 hb-ot-shape-complex-indic-table.cc hb-ot-tag-table.hh \ 7 hb-ucd-table.hh hb-ot-shape-complex-use-table.hh \ 8 hb-ot-shape-complex-vowel-constraints.cc 9 10.PHONY: all clean packtab 11 12hb-ot-shape-complex-arabic-joining-list.hh: gen-arabic-joining-list.py ArabicShaping.txt Scripts.txt 13 ./$^ > $@ || ($(RM) $@; false) 14hb-ot-shape-complex-arabic-table.hh: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt 15 ./$^ > $@ || ($(RM) $@; false) 16hb-unicode-emoji-table.hh: gen-emoji-table.py emoji-data.txt emoji-test.txt 17 ./$^ > $@ || ($(RM) $@; false) 18hb-ot-shape-complex-indic-table.cc: gen-indic-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt Blocks.txt 19 ./$^ > $@ || ($(RM) $@; false) 20hb-ot-tag-table.hh: gen-tag-table.py languagetags language-subtag-registry 21 ./$^ > $@ || ($(RM) $@; false) 22hb-ucd-table.hh: gen-ucd-table.py ucd.nounihan.grouped.zip hb-common.h 23 ./$^ > $@ || ($(RM) $@; false) 24hb-ot-shape-complex-use-table.hh: gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt ArabicShaping.txt DerivedCoreProperties.txt UnicodeData.txt Blocks.txt Scripts.txt ms-use/IndicSyllabicCategory-Additional.txt ms-use/IndicPositionalCategory-Additional.txt 25 ./$^ > $@ || ($(RM) $@; false) 26hb-ot-shape-complex-vowel-constraints.cc: gen-vowel-constraints.py ms-use/IndicShapingInvalidCluster.txt Scripts.txt 27 ./$^ > $@ || ($(RM) $@; false) 28 29packtab: 30 /usr/bin/env python3 -c "import packTab" 2>/dev/null || /usr/bin/env python3 -m pip install git+https://github.com/harfbuzz/packtab 31 32ArabicShaping.txt DerivedCoreProperties.txt IndicPositionalCategory.txt IndicSyllabicCategory.txt Scripts.txt UnicodeData.txt: 33 curl -O https://unicode.org/Public/UCD/latest/ucd/$@ 34emoji-data.txt: 35 curl -O https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt 36emoji-test.txt: 37 curl -O https://www.unicode.org/Public/emoji/latest/emoji-test.txt 38languagetags: 39 curl -O https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags 40language-subtag-registry: 41 curl -O https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry 42ucd.nounihan.grouped.zip: 43 curl -O https://unicode.org/Public/UCD/latest/ucdxml/ucd.nounihan.grouped.zip 44 45clean: 46 $(RM) \ 47 ArabicShaping.txt UnicodeData.txt Blocks.txt emoji-data.txt \ 48 IndicSyllabicCategory.txt IndicPositionalCategory.txt \ 49 languagetags language-subtag-registry ucd.nounihan.grouped.zip Scripts.txt 50