1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
.PHONY: container DOCKER_CMD = docker run --rm -v $(shell pwd):/home/build/src:Z IMG = protonutils-build container: docker build . -t $(IMG) build: container $(DOCKER_CMD) $(IMG) hash: container $(DOCKER_CMD) $(IMG) makepkg -g shell: container $(DOCKER_CMD) -it $(IMG) /bin/bash root_shell: container $(DOCKER_CMD) -it --user root $(IMG) /bin/bash