aboutsummaryrefslogtreecommitdiff
path: root/sys/libutf/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libutf/rules.mk')
-rw-r--r--sys/libutf/rules.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/libutf/rules.mk b/sys/libutf/rules.mk
index 8372519..53ff8cf 100644
--- a/sys/libutf/rules.mk
+++ b/sys/libutf/rules.mk
@@ -42,12 +42,16 @@ $(d)/vendor/EastAsianWidth-$(UNICODE).txt:
@echo "GET EastAsianWidth.txt";\
curl https://www.unicode.org/Public/$(UNICODE)/ucd/EastAsianWidth.txt > $@
+$(d)/vendor/EmojiData-$(UNICODE).txt:
+ @echo "GET EmojiData.txt";\
+ curl https://www.unicode.org/Public/$(UNICODE)/ucd/emoji/emoji-data.txt > $@
+
$(d)/vendor/mkrunewidth: $(d)/vendor/mkrunewidth.c $(d)/vendor/common.o $(OBJ_DIR)/sys/base/base.a
$(COMPLINK)
GENS += $(d)/vendor/mkrunewidth
-$(d)/runewidth-$(UNICODE).c: $(d)/vendor/mkrunewidth $(d)/vendor/UnicodeData-$(UNICODE).txt $(d)/vendor/EastAsianWidth-$(UNICODE).txt
+$(d)/runewidth-$(UNICODE).c: $(d)/vendor/mkrunewidth $(d)/vendor/UnicodeData-$(UNICODE).txt $(d)/vendor/EastAsianWidth-$(UNICODE).txt $(d)/vendor/EmojiData-$(UNICODE).txt
@$(dir $@)vendor/mkrunewidth $(filter-out $<, $^) > $@
# grapheme boundaries