From deff1a654529b34976d8a29f40c970c904810f40 Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Wed, 14 Oct 2015 17:43:18 -0700 Subject: [PATCH] Reintroduce check for missing binary, using a different method. Another way to do this is to create a target, but when I tried that it reintroduced the dependency analysis problem-- rules with this dependency always triggered. Of course I might have missed something subtle. Both the target approach and this approach come from http://stackoverflow.com/questions/5618615/check-if-a-program-exists-from-a-makefile) This always runs, but unless you're just running clean you'd always want to perform this check, so I think that's ok. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 6657eef6b..9217cc4e2 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,9 @@ EMOJI_BUILDER = third_party/color_emoji/emoji_builder.py ADD_GLYPHS = third_party/color_emoji/add_glyphs.py PUA_ADDER = map_pua_emoji.py VS_ADDER = add_vs_cmap.py +ifeq (, $(shell which $(VS_ADDER))) + $(error "$(VS_ADDER) not in path, run setup.py in nototools") +endif %.ttx: %.ttx.tmpl $(ADD_GLYPHS) $(UNI) $(PNG128_FLAGS) python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)"