Created
September 10, 2014 20:29
-
-
Save nateabele/49f47b80cc28b0985516 to your computer and use it in GitHub Desktop.
Cross-platform tool for generating icons from PNGs, see https://korewanetadesu.com/make-icons.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ICONUTIL := $(word 1, $(shell command -v iconutil icnsutil) iconutil) | |
| .SECONDEXPANSION: | |
| %.icns: %.iconset $$(wildcard $$(@D)/$$*.iconset/icon_*.png) | |
| $(ICONUTIL) -c icns -o $@ $< | |
| .SECONDEXPANSION: | |
| %.ico: %.iconset $$(wildcard $$(@D)/$$*.iconset/icon_*[0-9].png) | |
| convert -background transparent -colors 256 $(filter-out $<,$^) $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment