From: Stefano Rivera Date: Sat, 17 May 2014 13:48:14 +0000 (+0200) Subject: Icon Makefile X-Git-Tag: 0.1~96^2~12 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=a5c6918f864ea3f1e74d4d892202d0d37377b9dd;p=naja.git Icon Makefile --- diff --git a/data/icons/Makefile b/data/icons/Makefile new file mode 100644 index 0000000..fa114b6 --- /dev/null +++ b/data/icons/Makefile @@ -0,0 +1,27 @@ +TARGETS=robolock.icns robolock.ico + +PNGS=$(wildcard *.png) +RGBA_PNGS=$(patsubst %,rgba/%,$(PNGS)) + +.PHONY: all +all: $(TARGETS) + rm -rf rgba + +.PHONY: clean +clean: + rm -rf rgba + rm -f $(TARGETS) + +.PHONY: install-tools +install-tools: + echo apt-get install icnsutils icoutils + +rgba/%.png: %.png + mkdir -p rgba + convert $^ PNG32:$@ + +robolock.icns: $(filter-out %_24.png,$(RGBA_PNGS)) + png2icns $@ $^ + +robolock.ico: $(RGBA_PNGS) + icotool --create --output $@ $^