Files
Adv360-Pro-ZMK/Makefile
T
Jason Ish f8756e33e2 Makefile: allow volumes to work on selinux
Volumes need the "z" option to work on selinux enabled systems. This has
no affect on systems that are not selinux enabled.
2022-11-16 09:30:44 -06:00

17 lines
428 B
Makefile

DOCKER := $(shell { command -v podman || command -v docker; })
TIMESTAMP := $(shell date -u +"%Y%m%d%H%M%S")
.PHONY: all clean
all:
$(DOCKER) build --tag zmk --file Dockerfile .
$(DOCKER) run --rm -it --name zmk \
-v $(PWD)/firmware:/app/firmware:z \
-v $(PWD)/config:/app/config:ro,z \
-e TIMESTAMP=$(TIMESTAMP) \
zmk
clean:
rm -f firmware/*.uf2
$(DOCKER) image rm zmk docker.io/zmkfirmware/zmk-build-arm:stable