-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
22 lines (18 loc) · 612 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ROOT_DIR = $(abspath .)
CONTAINER_TAG = arm_hpc_tools
DOCKER_FLAG = $(abspath .docker)
DOCKERFILE ?= Dockerfile
ABS_DOCKERFILE = $(abspath $(DOCKERFILE))
ARM_LICENSE_DIR = $(abspath licenses)
.PHONY: docker
docker: $(DOCKER_FLAG)
$(DOCKER_FLAG): $(ABS_DOCKERFILE)
docker build -f $(ABS_DOCKERFILE) -t $(CONTAINER_TAG) .
@touch $@
.PHONY: interactive
interactive: $(DOCKER_FLAG)
@docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $(ROOT_DIR):/code -v $(ARM_LICENSE_DIR):/opt/arm/licenses -it $(CONTAINER_TAG) bash -l
.PHONY: clean
clean:
@rm -rf $(DOCKER_FLAG)
touch $(ABS_DOCKERFILE)