blob: 8f6a3c3ea01e29da98bbed1d07e83fa3caf9e3b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
SOUNDBOX_KICAD_SCH := pcb/soundbox.kicad_sch
PCB_BUILD_DIR := $(BUILD_DIR)/pcb
BOM := $(PCB_BUILD_DIR)/bom.csv
SCHEMATIC_PDF := $(PCB_BUILD_DIR)/schematic.pdf
ERC_REPORT := $(PCB_BUILD_DIR)/erc.rpt
.PHONY: pcb
pcb: $(BOM) $(SCHEMATIC_PDF)
$(BOM): $(SOUNDBOX_KICAD_SCH)
mkdir -p $(dir $@)
kicad-cli sch export bom \
--output $@ \
--fields 'Reference,Description,Value,Manufacturer,MPN,Datasheet' \
$<
$(SCHEMATIC_PDF): $(SOUNDBOX_KICAD_SCH)
mkdir -p $(dir $@)
kicad-cli sch export pdf --output $@ $<
$(ERC_REPORT): $(SOUNDBOX_KICAD_SCH)
mkdir -p $(dir $@)
kicad-cli sch erc --exit-code-violations --output $@ $<
|