Skip to content

Instantly share code, notes, and snippets.

@ast
Last active August 29, 2015 14:13
Show Gist options
  • Save ast/884f782cacc1c890ec9f to your computer and use it in GitHub Desktop.
Save ast/884f782cacc1c890ec9f to your computer and use it in GitHub Desktop.
Makefile for creating iOS app icons as required by xcode 6. Uses ImageMagick.
SHELL = /bin/sh
.SUFFIXES: .png
# Should be square
ICON=Icon-1024.png
all: Icon-29.png [email protected] [email protected] Icon-40.png [email protected] [email protected] [email protected] [email protected] Icon-76.png [email protected]
clean:
-rm Icon-29*
-rm Icon-40*
-rm Icon-60*
-rm Icon-76*
Icon-29.png: $(ICON)
convert $(ICON) -resize 29 Icon-29.png
[email protected]: $(ICON)
convert $(ICON) -resize 58 [email protected]
[email protected]: $(ICON)
convert $(ICON) -resize 87 [email protected]
Icon-40.png: $(ICON)
convert $(ICON) -resize 40 Icon-40.png
[email protected]: $(ICON)
convert $(ICON) -resize 80 [email protected]
[email protected]: $(ICON)
convert $(ICON) -resize 120 [email protected]
[email protected]: $(ICON)
convert $(ICON) -resize 120 [email protected]
[email protected]: $(ICON)
convert $(ICON) -resize 180 [email protected]
Icon-76.png: $(ICON)
convert $(ICON) -resize 76 Icon-76.png
[email protected]: $(ICON)
convert $(ICON) -resize 152 [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment