fiatlux/Makefile
jedi 8209a9a936
Some checks failed
continuous-integration/drone/push Build is failing
minify web content
2023-02-12 08:54:29 +01:00

39 lines
1.1 KiB
Makefile

.PHONY: firmware flash firmware_docker case pcb
all: firmware case pcb
firmware:
+@make -C firmware html all
flash:
+@make -C firmware flash
case:
+@make -C case all
pcb:
+@make -C pcb all
clean:
+@make -C firmware clean
+@make -C pcb clean
flash_docker:
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware --device=/dev/ttyUSB0 fiatlux_firmware_env make -C firmware flash"
firmware_docker:
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware fiatlux_firmware_env make -C firmware html all"
pcb_docker:
sh -c "docker build -t fiatlux_pcb_env docker/pcb"
sh -c "docker run --volume "$$(pwd)"/pcb:/app/pcb fiatlux_pcb_env make -C pcb all"
clean_docker:
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
sh -c "docker build -t fiatlux_pcb_env docker/pcb"
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware fiatlux_firmware_env make -C firmware clean"
sh -c "docker run --volume "$$(pwd)"/pcb:/app/pcb fiatlux_pcb_env make -C pcb clean"