From a5c6918f864ea3f1e74d4d892202d0d37377b9dd Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sat, 17 May 2014 15:48:14 +0200 Subject: [PATCH] Icon Makefile --- data/icons/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/icons/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 $@ $^ -- 2.34.1