From cee0ac387488f8b172886519569986601dbc8f59 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 19 Apr 2013 15:47:51 -0400 Subject: [PATCH] tolerate not having inkscape installed --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5223358e1..6f77b4a40 100644 --- a/Makefile +++ b/Makefile @@ -99,8 +99,10 @@ translations: data/locales.js: data/locales/*.js cat $^ > $@ +SPRITE = inkscape --export-area-page --export-png=img/line-presets.png svg/line-presets.svg + img/line-presets.png: svg/line-presets.svg - inkscape --export-area-page --export-png=img/line-presets.png svg/line-presets.svg + if [ `which inkscape` ]; then $(SPRITE); else echo "Inkscape is not installed"; fi; maki-sprite: node_modules/maki/renders/*.png node data/maki_sprite