aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-09-04 00:18:56 +0200
committerTeddy Wing2023-09-04 00:18:56 +0200
commit3a86b622acade34a79e6e5dd48cc724b481f1eb9 (patch)
treee5eadbe7d2b7c3583783c6aba61bc2bbadcf2c73
parent243db79eaf90dbd064fc16a553f71c8bdfe3d227 (diff)
downloadBase-Windowed-Application-3a86b622acade34a79e6e5dd48cc724b481f1eb9.tar.bz2
Makefile: Fix *.lproj targets
Turns out my substitution wasn't working because I had used `ls` in the `LPROJS` shell command, meaning there was no match to replace. Fix the substitution and copy the whole directories to fix the problem.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c75b8e4..7625392 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ testnospace:
SOURCES := $(shell find src -name '*.m')
OBJECTS := $(SOURCES:%.m=%.o)
-LPROJS := $(shell ls Internationalization)
+LPROJS := $(shell find Internationalization -depth 1)
PRODUCT := build/Application
@@ -75,13 +75,13 @@ build/$(APP_NAME_NOSPACE).app/Contents/Resources: | build/$(APP_NAME_NOSPACE).ap
build/$(APP_NAME_NOSPACE).app/Contents/Resources/%.lproj: \
Internationalization/%.lproj \
| build/$(APP_NAME_NOSPACE).app/Contents/Resources
- cp $< "${@}"
+ cp -R $< "${@}"
.PHONY: app
app: \
build/$(APP_NAME_NOSPACE).app/Contents/MacOS/$(APP_NAME_NOSPACE) \
build/$(APP_NAME_NOSPACE).app/Contents/Info.plist \
-$(patsubst Internationalization/%,build/$(APP_NAME_NOSPACE).app/Contents/Resources/%,$(LPROJS))
+$(subst Internationalization/,build/$(APP_NAME_NOSPACE).app/Contents/Resources/,$(LPROJS))
# $(subst Internationalization/,build/$(APP_NAME_NOSPACE).app/Contents/Resources/,$(LOCALIZABLE_STRINGS))