fix ./src/$(PACKAGE) to exist

This commit is contained in:
Alexander Mahr 2024-12-29 20:58:13 +01:00
parent be0786db68
commit b8dbee59ad

View file

@ -47,15 +47,19 @@ include Makefile.app-config
# make the resources "R.java" thing
./src/$(PACKAGE)/R.java : $(shell find ./res -type f) app-config.sh ./AndroidManifest.xml ./android-sdk/installed
./src/$(PACKAGE)/R.java : $(shell find ./res -type f) app-config.sh ./AndroidManifest.xml ./android-sdk/installed | ./src/$(PACKAGE)
$(BUILDTOOLS)/aapt package \
-v -f -m -S ./res -J ./src -M ./AndroidManifest.xml \
-I $(ANDROID_JAR)
# generate the AppActivity.java (template)
./src/$(PACKAGE)/AppActivity.java: app-config.sh
# generate the AppActivity.java (template
# the "|" denotes an "order-only" prerequiste (as in https://stackoverflow.com/a/58040049/1711186)
./src/$(PACKAGE)/AppActivity.java: app-config.sh | ./src/$(PACKAGE)
./.Makefile.scripts/make--AppActivity.java.sh > $@
./src/$(PACKAGE):
mkdir -p $@
# install the necessary android sdks
./android-sdk/installed: app-config.sh
./.Makefile.scripts/make--android-sdk.sh