source: source/Makefile@ 48:bcaa3b7a0890

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

Now supporting make install

File size: 406 bytes
Line 
1SOURCES = $(shell find images -name '*.svg')
2TARGETS = $(patsubst %.svg,%.png,$(SOURCES))
3OPTIMIZE = 1
4
5all: $(TARGETS)
6
7install: $(TARGETS)
8 set -ex; \
9 for fn in $(TARGETS); do \
10 mkdir -p ../data/"$$(dirname $$fn)"; \
11 cp $$fn ../data/$$fn; \
12 done
13
14clean:
15 rm -f $(TARGETS)
16
17%.png: %.svg
18 inkscape --export-png $@ --export-dpi 9 $<
19ifeq ($(OPTIMIZE),1)
20 optipng -o4 -preserve $@
21 advpng -z4 $@
22endif
Note: See TracBrowser for help on using the repository browser.