diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0433371 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ + + +build: + docker-compose run compile + + +clean: + rm docker-compose-build.log || true + docker-compose down --remove-orphans --rmi all + +apk: apk/app.apk + true + +apk/app.apk: docker-compose-build.log + docker-compose run compile + +docker-compose-build.log: Dockerfile docker-compose.yml + docker-compose down --remove-orphans --rmi all + BUILDKIT_PROGRESS=plain docker-compose build --no-cache | tee docker-compose-build.log + diff --git a/README.md b/README.md index 45af60a..6a382c6 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,12 @@ docker-compose run compile this should result in the apk being build and be available at `./apk/app.apk` +## Dependencies / Requirementes + +Ideally to work the system mus have `docker` and `docker-compose` (or some equivalend like `podman` etc.) +installed. Having GNU make installed would allow to use the contained Makefile, which however is not necessary + + ## Concepts and Ideals Many smart folks use [Android Studio](https://en.wikipedia.org/wiki/Android_Studio) IDE to build @@ -47,4 +53,3 @@ docker-compose build --no-cache ``` -