-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (14 loc) · 646 Bytes
/
Makefile
File metadata and controls
18 lines (14 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Define variables for KiBot
IMAGE_NAME := ghcr.io/inti-cmnb/kicad7_auto_full:latest
# specify platform to be sure we can run on Apple Silicons
DOCKER_RUN := docker run --rm --platform linux/amd64
DOCKER_VOLUME := -v "$(shell pwd)/hardware/pcb_cad_design":/mnt
DOCKER_WORKDIR := -w /mnt
# Define targets
.PHONY: kibot-all kibot-development kibot-production
kibot-all:
$(DOCKER_RUN) $(DOCKER_VOLUME) $(DOCKER_WORKDIR) $(IMAGE_NAME) kibot all
kibot-development:
$(DOCKER_RUN) $(DOCKER_VOLUME) $(DOCKER_WORKDIR) $(IMAGE_NAME) kibot development
kibot-production:
$(DOCKER_RUN) $(DOCKER_VOLUME) $(DOCKER_WORKDIR) $(IMAGE_NAME) kibot production