Skip to content

Commit fe91c66

Browse files
Merge pull request #279 from barracuda156/icns
Makefile.osx: fallback to makeicns
2 parents b7345e1 + 14d5cad commit fe91c66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile.osx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
ICONUTIL ?= $(shell which iconutil > /dev/null && echo iconutil)
1818
PNG2ICNS ?= $(shell which png2icns > /dev/null && echo png2icns)
19+
MAKEICNS ?= $(shell which makeicns > /dev/null && echo makeicns)
1920

2021
EXTRA_APP_OBJS := \
2122
res/backward32.o \
@@ -106,8 +107,10 @@ ifneq ($(ICONUTIL),)
106107
$(ICONUTIL) -c icns -o $@ $(ICONSET)
107108
else ifneq ($(PNG2ICNS),)
108109
$(PNG2ICNS) $@ res/icon{16,32,128,256,512}.png
110+
else ifneq ($(MAKEICNS),)
111+
$(MAKEICNS) -16 res/icon16.png -32 res/icon32.png -128 res/icon128.png -256 res/icon256.png -512 res/icon512.png -out $@
109112
else
110-
$(error Neither iconutil nor png2icns found in PATH. Install one or set ICONUTIL/PNG2ICNS as necessary)
113+
$(error Neither iconutil, png2icns nor makeicns found in PATH. Install one or set ICONUTIL/PNG2ICNS/MAKEICNS as necessary)
111114
endif
112115

113116
REHex.dmg: REHex.app

0 commit comments

Comments
 (0)