added Makefile

This commit is contained in:
Ahmet Inan 2023-01-09 13:23:06 +01:00
parent 603ba9e9e7
commit a7c97fd6f5

31
Makefile Normal file
View file

@ -0,0 +1,31 @@
PACKAGE = xdsopl.robot36
GRADLE = JAVA_HOME=$(HOME)/Android/Studio/jre/ ./gradlew
ADB = adb
.PHONY: all
all:
$(GRADLE) installDebug
$(ADB) shell am start -n $(PACKAGE)/$(PACKAGE).MainActivity
.PHONY: build
build:
$(GRADLE) assembleDebug
.PHONY: install
install:
$(ADB) -d install app/build/outputs/apk/debug/app-debug.apk
.PHONY: remove
remove:
$(ADB) uninstall $(PACKAGE)
.PHONY: start
start:
$(ADB) shell am start -n $(PACKAGE)/$(PACKAGE).MainActivity