abouttreesummaryrefslogcommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJules Aguillon2022-03-14 18:37:37 +0100
committerJules Aguillon2022-03-14 18:37:37 +0100
commit9bb7c7e66f6c22bbe341ae88b853ffad40fcbe31 (patch)
tree3cda2bbff093da0cb42c0f59c11018e8469c2648 /Makefile
parentf4978f5266abb01aaa78691d76209c4617f0f3c2 (diff)
downloadunexpected-keyboard-9bb7c7e66f6c22bbe341ae88b853ffad40fcbe31.tar.gz
unexpected-keyboard-9bb7c7e66f6c22bbe341ae88b853ffad40fcbe31.zip
Identify debug version in app name
Using the --product option of aapt. Remove the app name from translations because it is never translated. It is still possible to translate it by specifying 'product="default"'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8054ee3..72edb5b 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,11 @@ release: _build/$(PACKAGE_NAME).apk
installd: _build/$(PACKAGE_NAME).debug.apk
adb install "$<"
-.PHONY: release debug installd
+clean:
+ rm -rf _build/*.dex _build/class _build/gen _build/*.apk _build/*.unsigned-apk \
+ _build/*.idsig
+
+.PHONY: release debug installd clean
$(shell mkdir -p _build)
@@ -60,7 +64,7 @@ _build/%.debug.apk: _build/%.debug.unsigned-apk $(DEBUG_KEYSTORE)
# Debug apk
-_build/$(PACKAGE_NAME).debug.unsigned-apk: AAPT_PACKAGE_FLAGS+=--rename-manifest-package $(PACKAGE_NAME).debug
+_build/$(PACKAGE_NAME).debug.unsigned-apk: AAPT_PACKAGE_FLAGS+=--rename-manifest-package $(PACKAGE_NAME).debug --product debug
# Release signing