summaryrefslogtreecommitdiff
path: root/pcb/pcb.mk
blob: cde5d47edef02c8bad9925c6146e7683a48efa17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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' \
		$<