From ec8baa63295be13f9aadcada4f7a7b0f8c951a04 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 11 Jul 2025 18:03:36 +0300 Subject: [PATCH] Allow specifying a custom ibtool path --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fc067f5ee..0b70b2622 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,8 @@ CC := clang endif endif +IBTOOL ?= ibtool + # Find libraries with pkg-config if available. ifneq (, $(shell which pkg-config 2> $(NULL))) # But not on macOS, it's annoying, and not on Haiku, where OpenGL is broken @@ -590,10 +592,10 @@ ifeq ($(CONF), release) endif $(BIN)/SameBoy.app/Contents/Resources/%.nib: Cocoa/%.xib - ibtool --target-device mac --minimum-deployment-target 10.9 --compile $@ $^ 2>&1 | cat - + $(IBTOOL) --target-device mac --minimum-deployment-target 10.9 --compile $@ $^ 2>&1 | cat - $(BIN)/SameBoy-iOS.app/%.storyboardc: iOS/%.storyboard - ibtool --target-device iphone --target-device ipad --minimum-deployment-target $(IOS_MIN) --compile $@ $^ 2>&1 | cat - + $(IBTOOL) --target-device iphone --target-device ipad --minimum-deployment-target $(IOS_MIN) --compile $@ $^ 2>&1 | cat - # Quick Look generators