From f8675ee766d8947099716290a7c0e3eafb421916 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 5 Sep 2023 02:00:17 +0200 Subject: Makefile: Try building an app with no spaces in its name It technically works, but with a lot of cruft: $ make app find: build/Nospace.app: No such file or directory Makefile:52: warning: overriding commands for target `build/Nospace.app' Makefile:40: warning: ignoring old commands for target `build/Nospace.app' Makefile:62: warning: overriding commands for target `build/Nospace.app/Contents/MacOS/Nospace' Makefile:44: warning: ignoring old commands for target `build/Nospace.app/Contents/MacOS/Nospace' mkdir -p build/Nospace.app mkdir -p build/Nospace.app/Contents mkdir -p build/Nospace.app/Contents/MacOS make: Circular build/Nospace.app/Contents/MacOS/Nospace <- build/Nospace.app/Contents/MacOS/Nospace dependency dropped. cc \ -framework Cocoa \ -o "build/Nospace.app/Contents/MacOS/Nospace" \ src/MainMenu.o src/main.o src/AppDelegate.o cp Info.plist "build/Nospace.app/Contents/Info.plist" mkdir -p build/Nospace.app/Contents/Resources cp -R Internationalization/en.lproj "build/Nospace.app/Contents/Resources/en.lproj" cp -R Internationalization/fr.lproj "build/Nospace.app/Contents/Resources/fr.lproj" I'd like to make it work without the warnings, or at least without the circular dependency. --- Info.plist | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Info.plist b/Info.plist index e1b9e8c..1a7ad7f 100644 --- a/Info.plist +++ b/Info.plist @@ -7,7 +7,7 @@ CFBundleDisplayName Base Windowed Application CFBundleExecutable - Base Windowed Application + Nospace CFBundleIdentifier com.teddywing.Base-Windowed-Application CFBundleInfoDictionaryVersion diff --git a/Makefile b/Makefile index f2fb483..ce49cc1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -APP_NAME := Base\ Windowed\ Application +APP_NAME := Nospace NBSP := $(shell perl -C -e 'print chr 0xfeff') APP_NAME_NOSPACE := $(subst \ ,$(NBSP),$(APP_NAME)) -- cgit v1.2.3