Mercurial > nagslang
annotate source/Makefile @ 211:434b5a3aaaff
Pass display offset to overlays for when the display is larger than the level
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Wed, 04 Sep 2013 00:11:29 +0200 |
parents | bcaa3b7a0890 |
children | eba98879f47f |
rev | line source |
---|---|
48
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
1 SOURCES = $(shell find images -name '*.svg') |
36 | 2 TARGETS = $(patsubst %.svg,%.png,$(SOURCES)) |
43
bfef0827b171
Optional optimization
Stefano Rivera <stefano@rivera.za.net>
parents:
36
diff
changeset
|
3 OPTIMIZE = 1 |
36 | 4 |
5 all: $(TARGETS) | |
6 | |
48
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
7 install: $(TARGETS) |
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
8 set -ex; \ |
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
9 for fn in $(TARGETS); do \ |
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
10 mkdir -p ../data/"$$(dirname $$fn)"; \ |
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
11 cp $$fn ../data/$$fn; \ |
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
12 done |
bcaa3b7a0890
Now supporting make install
Stefano Rivera <stefano@rivera.za.net>
parents:
45
diff
changeset
|
13 |
36 | 14 clean: |
15 rm -f $(TARGETS) | |
16 | |
17 %.png: %.svg | |
45
529395304216
Export with inkscape. rsvg got the eyes wrong
Stefano Rivera <stefano@rivera.za.net>
parents:
44
diff
changeset
|
18 inkscape --export-png $@ --export-dpi 9 $< |
43
bfef0827b171
Optional optimization
Stefano Rivera <stefano@rivera.za.net>
parents:
36
diff
changeset
|
19 ifeq ($(OPTIMIZE),1) |
36 | 20 optipng -o4 -preserve $@ |
21 advpng -z4 $@ | |
43
bfef0827b171
Optional optimization
Stefano Rivera <stefano@rivera.za.net>
parents:
36
diff
changeset
|
22 endif |