add coverage check to make

pull/299/head
guidotheelen 2020-04-22 09:45:14 +02:00
parent 25b38fe2cb
commit 51137aa773
1 changed files with 9 additions and 1 deletions

View File

@ -41,6 +41,8 @@ VS_ADDER = add_vs_cmap.py # from nototools
EMOJI_SRC_DIR ?= png/128 EMOJI_SRC_DIR ?= png/128
FLAGS_SRC_DIR := third_party/region-flags/png FLAGS_SRC_DIR := third_party/region-flags/png
CHECK_COVERAGE_PY = check_emoji_sequences.py
BUILD_DIR := build BUILD_DIR := build
EMOJI_DIR := $(BUILD_DIR)/emoji EMOJI_DIR := $(BUILD_DIR)/emoji
FLAGS_DIR := $(BUILD_DIR)/flags FLAGS_DIR := $(BUILD_DIR)/flags
@ -217,7 +219,7 @@ endif
@rm -f "$@" @rm -f "$@"
ttx "$<" ttx "$<"
$(EMOJI).ttf: $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \ $(EMOJI).ttf: check_coverage $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \
$(ALL_COMPRESSED_FILES) | check_vs_adder $(ALL_COMPRESSED_FILES) | check_vs_adder
@$(PYTHON) $(EMOJI_BUILDER) $(SMALL_METRICS) -V $< "$@" "$(COMPRESSED_DIR)/emoji_u" @$(PYTHON) $(EMOJI_BUILDER) $(SMALL_METRICS) -V $< "$@" "$(COMPRESSED_DIR)/emoji_u"
@$(PYTHON) $(PUA_ADDER) "$@" "$@-with-pua" @$(PYTHON) $(PUA_ADDER) "$@" "$@-with-pua"
@ -225,6 +227,12 @@ $(EMOJI).ttf: $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \
@mv "$@-with-pua-varsel" "$@" @mv "$@-with-pua-varsel" "$@"
@rm "$@-with-pua" @rm "$@-with-pua"
check_coverage:
ifdef CHECK_COVERAGE
$(PYTHON) $(CHECK_COVERAGE_PY) -d $(EMOJI_SRC_DIR) -c
@echo -n "Proceed with building font? [y/N]" && read ans && [ $${ans:-N} = y ]
endif
clean: clean:
rm -f $(EMOJI).ttf $(EMOJI).tmpl.ttf $(EMOJI).tmpl.ttx rm -f $(EMOJI).ttf $(EMOJI).tmpl.ttf $(EMOJI).tmpl.ttx
rm -f waveflag rm -f waveflag