--- /dev/null
+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 $@ $^