changeset 43:bfef0827b171

Optional optimization
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 01 Sep 2013 18:14:43 +0200
parents 98e739941388
children 2ba3c443c328
files source/Makefile
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/Makefile	Sun Sep 01 18:10:33 2013 +0200
+++ b/source/Makefile	Sun Sep 01 18:14:43 2013 +0200
@@ -1,5 +1,6 @@
 SOURCES = $(shell find svg -name '*.svg')
 TARGETS = $(patsubst %.svg,%.png,$(SOURCES))
+OPTIMIZE = 1
 
 all: $(TARGETS)
 
@@ -8,5 +9,7 @@
 
 %.png: %.svg
 	rsvg-convert $< > $@
+ifeq ($(OPTIMIZE),1)
 	optipng -o4 -preserve $@
 	advpng -z4 $@
+endif