improve Makefile dependencies; add run

This commit is contained in:
Alexander Mahr 2024-10-30 09:28:36 +01:00
parent a8b47f8bdf
commit ecbbc8dfa2

View file

@ -1,18 +1,22 @@
.PHONY: all
all: install-all
all: docker-compose-build.log build-all install-all .PHONY: run-webview
run-webview: install-webview
adb shell am start -n app.example/.ExampleApp
.PHONY: build-all .PHONY: build-all
build-all: build-webview build-native build-all: build-webview build-native
.PHONY: build-webview .PHONY: build-webview
build-webview: build-webview: docker-compose-build.log
docker-compose run --rm compile webview docker-compose run --rm compile webview
ln -sf apk/webview/result/example.app.apk ./; test -e ./example.app.apk || rm ./example.app.apk ln -sf apk/webview/result/example.app.apk ./; test -e ./example.app.apk || rm ./example.app.apk
.PHONY: build-native .PHONY: build-native
build-native: build-native: docker-compose-build.log
docker-compose run --rm compile native docker-compose run --rm compile native
#ln -sf apk/native/result/example.app.apk ./; test -e ./example.app.apk || rm ./example.app.apk #ln -sf apk/native/result/example.app.apk ./; test -e ./example.app.apk || rm ./example.app.apk
@ -20,11 +24,11 @@ build-native:
install-all: install-webview install-native install-all: install-webview install-native
.PHONY: install-webview .PHONY: install-webview
install-webview: install-webview: build-webview
adb install -r ./example.app.apk adb install -r ./example.app.apk
.PHONY: install-native .PHONY: install-native
install-native: install-native: build-native
true true
#adb install -r ./example.app.apk #adb install -r ./example.app.apk