projects
/
naja.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
33a133c5a6857638171e386b70776c4429a9cb43
[naja.git]
/
data
/
icons
/
Makefile
1
TARGETS=robolock.icns robolock.ico
2
3
PNGS=$(wildcard *.png)
4
RGBA_PNGS=$(patsubst %,rgba/%,$(PNGS))
5
6
.PHONY: all
7
all: $(TARGETS)
8
rm -rf rgba
9
10
.PHONY: clean
11
clean:
12
rm -rf rgba
13
rm -f $(TARGETS)
14
15
.PHONY: install-tools
16
install-tools:
17
echo apt-get install icnsutils icoutils
18
19
rgba/%.png: %.png
20
mkdir -p rgba
21
convert $^ PNG32:$@
22
23
robolock.icns: $(filter-out %_24.png %_64.png,$(RGBA_PNGS))
24
png2icns $@ $^
25
26
robolock.ico: $(RGBA_PNGS)
27
icotool --create --output $@ $^