mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-08 07:47:59 +00:00
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.
This commit is contained in:
parent
4a90607d2d
commit
deff1a6545
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -84,6 +84,9 @@ EMOJI_BUILDER = third_party/color_emoji/emoji_builder.py
|
||||||
ADD_GLYPHS = third_party/color_emoji/add_glyphs.py
|
ADD_GLYPHS = third_party/color_emoji/add_glyphs.py
|
||||||
PUA_ADDER = map_pua_emoji.py
|
PUA_ADDER = map_pua_emoji.py
|
||||||
VS_ADDER = add_vs_cmap.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)
|
%.ttx: %.ttx.tmpl $(ADD_GLYPHS) $(UNI) $(PNG128_FLAGS)
|
||||||
python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)"
|
python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue