Merge pull request #5 from khaledhosny/speedup-make

Speed up make by calling flag_glyph_name.py once
pull/6/head
Behdad Esfahbod 2015-06-20 17:59:10 -07:00
commit 8839dc42e1
1 changed files with 2 additions and 1 deletions

View File

@ -60,8 +60,9 @@ FLAGS_DIR = ./flags
glyph_name = $(shell ./flag_glyph_name.py $(flag))
GLYPH_NAMES := $(shell ./flag_glyph_name.py $(FLAGS))
WAVED_FLAGS := $(foreach flag,$(FLAGS),$(FLAGS_DIR)/$(flag).png)
PNG128_FLAGS := $(foreach flag,$(FLAGS),$(addprefix ./png/128/emoji_$(glyph_name),.png))
PNG128_FLAGS := $(foreach glyph_name,$(GLYPH_NAMES),$(addprefix ./png/128/emoji_$(glyph_name),.png))
$(FLAGS_DIR)/%.png: $(FLAGS_SRC_DIR)/%.png ./waveflag $(PNGQUANT)
mkdir -p $(FLAGS_DIR)