source: source/Makefile@ 231:eba98879f47f

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

Avoid indirection in Makefile

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