| 1 |
UNICODE_VERSION = 9.0.0 |
| 2 |
|
| 3 |
PROP_FILES = \ |
| 4 |
$(UNICODE_VERSION)/Blocks.txt \ |
| 5 |
$(UNICODE_VERSION)/DerivedAge.txt \ |
| 6 |
$(UNICODE_VERSION)/DerivedCoreProperties.txt \ |
| 7 |
$(UNICODE_VERSION)/PropertyAliases.txt \ |
| 8 |
$(UNICODE_VERSION)/PropertyValueAliases.txt \ |
| 9 |
$(UNICODE_VERSION)/PropList.txt \ |
| 10 |
$(UNICODE_VERSION)/Scripts.txt \ |
| 11 |
$(UNICODE_VERSION)/UnicodeData.txt \ |
| 12 |
$(UNICODE_VERSION)/GraphemeBreakProperty.txt |
| 13 |
|
| 14 |
CASEFOLD_FILES = \ |
| 15 |
$(UNICODE_VERSION)/CaseFolding.txt \ |
| 16 |
$(UNICODE_VERSION)/UnicodeData.txt \ |
| 17 |
$(UNICODE_VERSION)/SpecialCasing.txt |
| 18 |
|
| 19 |
|
| 20 |
update: casefold.h name2ctype.h |
| 21 |
cp casefold.h name2ctype.h ../enc/unicode |
| 22 |
|
| 23 |
download: |
| 24 |
./download-ucd.sh $(UNICODE_VERSION) |
| 25 |
|
| 26 |
|
| 27 |
casefold.h: $(CASEFOLD_FILES) |
| 28 |
$(RUBY) ./case-folding.rb -m $(UNICODE_VERSION) -o casefold.h |
| 29 |
|
| 30 |
name2ctype.h: $(PROP_FILES) |
| 31 |
$(RUBY) ./enc-unicode.rb --header $(UNICODE_VERSION) > name2ctype.h |
| 32 |
|
| 33 |
|
| 34 |
clean: |
| 35 |
-rm -f casefold.h name2ctype.kwd name2ctype.h |
| 36 |
-rm -f $(PROP_FILES) $(CASEFOLD_FILES) |
| 37 |
-rmdir $(UNICODE_VERSION) |