summaryrefslogtreecommitdiff
path: root/pcb/pcb.mk
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-01-07 18:51:08 +0100
committerxengineering <me@xengineering.eu>2025-01-07 18:51:08 +0100
commitde516a2d54f7d0e047fcdb6c31401a8dd5047e9a (patch)
tree8c74cf010e57e87f827752cc99b46720b8403079 /pcb/pcb.mk
parentc0ef77f10f3bda37e6ff97c3a01702c4c9482f2d (diff)
downloadsoundbox-de516a2d54f7d0e047fcdb6c31401a8dd5047e9a.tar
soundbox-de516a2d54f7d0e047fcdb6c31401a8dd5047e9a.tar.zst
soundbox-de516a2d54f7d0e047fcdb6c31401a8dd5047e9a.zip
pcb: Export schematic as PDF with Make
Diffstat (limited to 'pcb/pcb.mk')
-rw-r--r--pcb/pcb.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/pcb/pcb.mk b/pcb/pcb.mk
index cde5d47..0d4376f 100644
--- a/pcb/pcb.mk
+++ b/pcb/pcb.mk
@@ -1,13 +1,18 @@
+SOUNDBOX_KICAD_SCH := pcb/soundbox.kicad_sch
PCB_BUILD_DIR := $(BUILD_DIR)/pcb
BOM := $(PCB_BUILD_DIR)/bom.csv
-SCH := pcb/soundbox.kicad_sch
+SCHEMATIC_PDF := $(PCB_BUILD_DIR)/schematic.pdf
.PHONY: pcb
-pcb: $(BOM)
+pcb: $(BOM) $(SCHEMATIC_PDF)
-$(BOM): $(SCH)
+$(BOM): $(SOUNDBOX_KICAD_SCH)
mkdir -p $(dir $@)
kicad-cli sch export bom \
- -o $@ \
+ --output $@ \
--fields 'Reference,Description,Value,Manufacturer,MPN,Datasheet' \
$<
+
+$(SCHEMATIC_PDF): $(SOUNDBOX_KICAD_SCH)
+ mkdir -p $(dir $@)
+ kicad-cli sch export pdf --output $@ $<