From 741228a5116a5289c7a81b1456c4807e38cf6e88 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Fri, 24 Apr 2020 12:13:41 -0700 Subject: [PATCH] Add arch argument to makefile. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8e38bbdf..574861a7 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +ARCH= + # Clear out apks clean: - rm -rf dist/android/*.apk project_info.json ./src/kolibri @@ -18,7 +20,7 @@ project_info.json: project_info.template src/kolibri scripts/create_project_info .PHONY: p4a_android_distro p4a_android_distro: whitelist.txt project_info.json - pew init android + pew init android $(ARCH) ifdef P4A_RELEASE_KEYSTORE_PASSWD pew_release_flag = --release @@ -27,7 +29,7 @@ endif .PHONY: kolibri.apk # Buld the debug version of the apk kolibri.apk: p4a_android_distro - pew build android $(pew_release_flag) + pew build android $(pew_release_flag) $(ARCH) # DOCKER BUILD @@ -48,7 +50,7 @@ run_docker: build_docker ./scripts/rundocker.sh launch: - pew build android $(pew_release_flag) + pew build android $(pew_release_flag) $(ARCH) adb uninstall org.learningequality.Kolibri || true 2> /dev/null rm dist/android/Kolibri-0-debug.apk || true 2> /dev/null adb install dist/android/*-debug.apk