Mercurial > nagslang
view source/Makefile @ 201:3495a2025bc6
Break puzzlers out of game_object.py
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 03 Sep 2013 23:27:25 +0200 |
parents | bcaa3b7a0890 |
children | eba98879f47f |
line wrap: on
line source
SOURCES = $(shell find images -name '*.svg') TARGETS = $(patsubst %.svg,%.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 inkscape --export-png $@ --export-dpi 9 $< ifeq ($(OPTIMIZE),1) optipng -o4 -preserve $@ advpng -z4 $@ endif