source: source/Makefile@ 43:bfef0827b171

Last change on this file since 43:bfef0827b171 was 43:bfef0827b171, checked in by Stefano Rivera <stefano@…>, 8 years ago

Optional optimization

File size: 247 bytes
Line 
1SOURCES = $(shell find svg -name '*.svg')
2TARGETS = $(patsubst %.svg,%.png,$(SOURCES))
3OPTIMIZE = 1
4
5all: $(TARGETS)
6
7clean:
8 rm -f $(TARGETS)
9
10%.png: %.svg
11 rsvg-convert $< > $@
12ifeq ($(OPTIMIZE),1)
13 optipng -o4 -preserve $@
14 advpng -z4 $@
15endif
Note: See TracBrowser for help on using the repository browser.