diff options
author | Teddy Wing | 2023-09-05 02:00:17 +0200 |
---|---|---|
committer | Teddy Wing | 2023-09-05 02:00:17 +0200 |
commit | f8675ee766d8947099716290a7c0e3eafb421916 (patch) | |
tree | 0ecf450d8e8ee4242005671623bc289baba69486 | |
parent | 7f21eec43ee50fe784f20e38019496665b1cbd30 (diff) | |
download | Base-Windowed-Application-f8675ee766d8947099716290a7c0e3eafb421916.tar.bz2 |
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.
-rw-r--r-- | Info.plist | 2 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ <key>CFBundleDisplayName</key> <string>Base Windowed Application</string> <key>CFBundleExecutable</key> - <string>Base Windowed Application</string> + <string>Nospace</string> <key>CFBundleIdentifier</key> <string>com.teddywing.Base-Windowed-Application</string> <key>CFBundleInfoDictionaryVersion</key> @@ -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)) |