-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (42 loc) · 1.7 KB
/
Makefile
File metadata and controls
66 lines (42 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: build run start stop shell build-abootimg build-simg2img help
.DEFAULT_GOAL= help
init: git-install-submodule build-docker-image
mkdir ./bin
update: docker-image-rm docker-image-update #git-update-submodule
build: docker-image-build
init-start: docker-container-init-start
start: docker-container-start
shell: docker-container-shell
stop: docker-container-stop
rm: docker-container-rm
docker-container-init-start:
docker run \
--name docker_android_builder_${OS}_${RELEASE} \
-v ${BUILD_PATH}:/android \
-d docker_android_builder_${OS}_${RELEASE}
docker-container-start:
docker start docker_android_builder_${OS}_${RELEASE}
docker-container-shell:
docker exec -it docker_android_builder_${OS}_${RELEASE} bash
docker-container-stop:
docker container stop docker_android_builder_${OS}_${RELEASE}
docker-container-rm:
docker container rm -f docker_android_builder_${OS}_${RELEASE}
docker-image-update: docker-container-rm docker-image-build
docker-image-rm:
docker image rm docker_android_builder_${OS}_${RELEASE}
docker-image-build:
docker build \
-t docker_android_builder_${OS}_${RELEASE} \
-f ./docker/${OS}/${RELEASE}/Dockerfile .
git-install-submodule:
git submodule update --init
git-update-submodule:
git submodule update --remote
# build-abootimg: git-install-submodule
# cd utils/abootimg && $(MAKE)
build-android_blob_utility:
cd utils/android_blob_utility && $(MAKE)
cd bin/ && ln -s -f ../utils/android_blob_utility/android-blob-utility ./
help: ## Show all commands and informations about it
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)