Mercurial > nagslang
comparison source/Makefile @ 673:62b9eac8e236
24 and 48 are probably useful
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sun, 08 Sep 2013 18:15:26 +0200 |
parents | 09c76e7ce675 |
children |
comparison
equal
deleted
inserted
replaced
672:b9c29fd56b1e | 673:62b9eac8e236 |
---|---|
1 IMG_SOURCES = $(shell find images -name '*.svg') | 1 IMG_SOURCES = $(shell find images -name '*.svg') |
2 IMG_TARGETS = $(patsubst %.svg,../data/%.png,$(IMG_SOURCES)) | 2 IMG_TARGETS = $(patsubst %.svg,../data/%.png,$(IMG_SOURCES)) |
3 ICONS = _16.png _32.png _64.png _128.png .xpm .icns .ico | 3 ICONS = _16.png _24.png _32.png _48.png _64.png _128.png .xpm .icns .ico |
4 ICO_TARGETS = $(patsubst %,../data/icons/werewolf-sonata%,$(ICONS)) | 4 ICO_TARGETS = $(patsubst %,../data/icons/werewolf-sonata%,$(ICONS)) |
5 OPTIMIZE = 1 | 5 OPTIMIZE = 1 |
6 | 6 |
7 all: $(IMG_TARGETS) $(ICO_TARGETS) | 7 all: $(IMG_TARGETS) $(ICO_TARGETS) |
8 | 8 |
52 ifeq ($(OPTIMIZE),1) | 52 ifeq ($(OPTIMIZE),1) |
53 optipng -o4 -preserve $@ | 53 optipng -o4 -preserve $@ |
54 advpng -z4 $@ | 54 advpng -z4 $@ |
55 endif | 55 endif |
56 | 56 |
57 ../data/icons/%_24.png: icons/%.svg | |
58 inkscape --export-png $@ --export-width 24 --export-height 24 $< | |
59 ifeq ($(OPTIMIZE),1) | |
60 optipng -o4 -preserve $@ | |
61 advpng -z4 $@ | |
62 endif | |
63 | |
57 ../data/icons/%_16.png: icons/%.svg | 64 ../data/icons/%_16.png: icons/%.svg |
58 inkscape --export-png $@ --export-width 16 --export-height 16 $< | 65 inkscape --export-png $@ --export-width 16 --export-height 16 $< |
59 ifeq ($(OPTIMIZE),1) | 66 ifeq ($(OPTIMIZE),1) |
60 optipng -o4 -preserve $@ | 67 optipng -o4 -preserve $@ |
61 advpng -z4 $@ | 68 advpng -z4 $@ |