summarylogtreecommitdiffstats
path: root/Makefile
blob: 2c17e397ba93f0d8c60479cf85e7cc0b9e46d7ee (plain)
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