diff Makefile @ 457:105815cce146 stable-1.9.3-3

minimum version android 5, target and compile version api 28
author Carl Byington <carl@five-ten-sg.com>
date Tue, 29 Jan 2019 11:21:57 -0800
parents 3f24984b435f
children a3239022798d
line wrap: on
line diff
--- a/Makefile	Sat Nov 10 12:18:05 2018 -0800
+++ b/Makefile	Tue Jan 29 11:21:57 2019 -0800
@@ -24,15 +24,17 @@
 	hg pull; hg update
 	make builder
 
-builder: prep
-	rm -rf app/build/*
-	echo -e "$(version)" >app/src/main/res/values/version.xml
-	cat app/src/main/res/values/version.xml
+builder: clean prep
 	ANDROID_HOME=/home/carl/Android/Sdk ANDROID_NDK_HOME=/home/carl/Android/Sdk/ndk-bundle ./gradlew $(task)
 	mv app/build/outputs/apk/arm/$(style)/app-arm-$(style).apk $(apk)
 	ls -al app/build/outputs/apk
 
+clean:
+	rm -rf app/build/*
+	rm -rf app/.externalNativeBuild || true
+
 prep:
+	echo -e "$(version)" >app/src/main/res/values/version.xml
 	(cd help; make)
 
 genkey: