From f7fbcb00162db8b57ce84e9ee0acc78acf6be032 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 29 Oct 2020 12:21:13 +0100 Subject: Add makefile, update mech foo --- prototype/mech_pcbs/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 prototype/mech_pcbs/Makefile (limited to 'prototype/mech_pcbs/Makefile') diff --git a/prototype/mech_pcbs/Makefile b/prototype/mech_pcbs/Makefile new file mode 100644 index 0000000..10dc53f --- /dev/null +++ b/prototype/mech_pcbs/Makefile @@ -0,0 +1,31 @@ + +PROJECT := rotohsm + +BUILDDIR ?= build + +ZIP ?= zip + +BOARDS := \ + bearing_mount_middle \ + bearing_mount_top \ + rotor_base_outer_pcb \ + rotor_base_pcb \ + rotor_top_pcb \ + rotor_vstrut_pcb \ + stator_base_pcb \ + stator_raspi_vstrut_pcb \ + stator_top_pcb + +VERSION := $(shell git describe --tags --long --dirty) +COMBINED_ZIP := gerber_${PROJECT}_all_${VERSION}.zip + +all: $(BUILDDIR)/$(COMBINED_ZIP) + +$(BUILDDIR)/gerber_%_${VERSION}.zip: %/gerber + $(ZIP) -r $@ $^ + +$(BUILDDIR)/$(COMBINED_ZIP): $(addprefix $(BUILDDIR)/,${BOARDS:%=gerber_%_${VERSION}.zip}) + $(ZIP) -r $@ $^ + +clean: + rm -f build/*.zip -- cgit