diff options
Diffstat (limited to 'pcb/pcb.mk')
-rw-r--r-- | pcb/pcb.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pcb/pcb.mk b/pcb/pcb.mk new file mode 100644 index 0000000..cde5d47 --- /dev/null +++ b/pcb/pcb.mk @@ -0,0 +1,13 @@ +PCB_BUILD_DIR := $(BUILD_DIR)/pcb +BOM := $(PCB_BUILD_DIR)/bom.csv +SCH := pcb/soundbox.kicad_sch + +.PHONY: pcb +pcb: $(BOM) + +$(BOM): $(SCH) + mkdir -p $(dir $@) + kicad-cli sch export bom \ + -o $@ \ + --fields 'Reference,Description,Value,Manufacturer,MPN,Datasheet' \ + $< |