From 17ecda6af3611a5e0c19b16b5a3592695aaea544 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 30 Sep 2023 01:36:32 +0200 Subject: Try to get app name from compiler flag This isn't working with the spaces handling. Not sure if I want to keep going with this approach as it feels like spaces and escaping is going to get hairy to deal with. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cfa25a1..df1cb72 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ LOCALIZABLE_STRINGS := $(shell find Internationalization -name Localizable.strin CFLAGS += -x objective-c CFLAGS += -Wall -Werror +CFLAGS += -DMK_APP_NAME="@\"$(APP_NAME)\"" LDFLAGS += -framework Cocoa -- cgit v1.2.3