Mercurial > nagslang
changeset 231:eba98879f47f
Avoid indirection in Makefile
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Wed, 04 Sep 2013 18:45:18 +0200 |
parents | a3db94687ce2 |
children | 3c31f9d4298e |
files | source/Makefile |
diffstat | 1 files changed, 3 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/source/Makefile Wed Sep 04 18:41:06 2013 +0200 +++ b/source/Makefile Wed Sep 04 18:45:18 2013 +0200 @@ -1,20 +1,14 @@ SOURCES = $(shell find images -name '*.svg') -TARGETS = $(patsubst %.svg,%.png,$(SOURCES)) +TARGETS = $(patsubst %.svg,../data/%.png,$(SOURCES)) OPTIMIZE = 1 all: $(TARGETS) -install: $(TARGETS) - set -ex; \ - for fn in $(TARGETS); do \ - mkdir -p ../data/"$$(dirname $$fn)"; \ - cp $$fn ../data/$$fn; \ - done - clean: rm -f $(TARGETS) -%.png: %.svg +../data/%.png: %.svg + mkdir -p $(dir $@) inkscape --export-png $@ --export-dpi 9 $< ifeq ($(OPTIMIZE),1) optipng -o4 -preserve $@