From c6aca8f2815d1bcd1522070e83a8f4b70e1856a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 25 Jul 2020 22:25:07 +0200 Subject: [PATCH] Makefile: make check_sequence a order-only prerequisites The Makefile rule for the `$(EMOJI).ttf` target passes the first prerequisite to the emoji_builder python script using the $< automatic Makefile variable. For this reason, the first prerequisite of this target must be `$(EMOJI).tmpl.ttf`. Otherwise the following error message is emitted: FileNotFoundError: [Errno 2] No such file or directory: 'check_sequence' This commit moves the check_sequence prerequisite to the order-only prerequisites of where it actually belongs as the target itself should not be updated if check_sequence is executed. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ca6b7e34b..e5be63796 100644 --- a/Makefile +++ b/Makefile @@ -206,8 +206,8 @@ $(COMPRESSED_DIR)/%.png: $(QUANTIZED_DIR)/%.png | check_tools $(COMPRESSED_DIR) @rm -f "$@" ttx "$<" -$(EMOJI).ttf: check_sequence $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \ - $(ALL_COMPRESSED_FILES) | check_tools +$(EMOJI).ttf: $(EMOJI).tmpl.ttf $(EMOJI_BUILDER) $(PUA_ADDER) \ + $(ALL_COMPRESSED_FILES) | check_sequence check_tools @$(PYTHON) $(EMOJI_BUILDER) $(SMALL_METRICS) -V $< "$@" "$(COMPRESSED_DIR)/emoji_u" @$(PYTHON) $(PUA_ADDER) "$@" "$@-with-pua"