-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
29 lines (25 loc) · 840 Bytes
/
Makefile
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
.PHONY: set-arch build run-build shell
.DEFAULT_GOAL := run-build
arch=$(shell uname -m)
set-arch:
ifeq ($(arch),aarch64)
arch=arm64
endif
build: set-arch
ifeq ($(arch),arm64)
docker-compose -f docker/docker-compose.centos-7arm.yaml build
else
docker-compose -f docker/docker-compose.centos-6.yaml -f docker/docker-compose.centos-6.18.yaml build
endif
run-build: build
ifeq ($(arch),arm64)
docker-compose -f docker/docker-compose.centos-7arm.yaml run compile-aarch64-build
else
docker-compose -f docker/docker-compose.centos-6.yaml -f docker/docker-compose.centos-6.18.yaml run build-leak
endif
shell: build
ifeq ($(arch),arm64)
docker-compose -f docker/docker-compose.centos-7arm.yaml run compile-aarch64-shell
else
docker-compose -f docker/docker-compose.centos-6.yaml -f docker/docker-compose.centos-6.18.yaml run shell
endif