From d6ed8e8f869528ff6071f4160c662ccf7cc6246b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 6 Feb 2023 12:44:40 +0100 Subject: [PATCH] make: use kicad-cli to generate bom --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1733111..80cd537 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,12 @@ lib: pcbdraw --silent $< --dpi 600 --back $@ # export Bill of Material (as CSV) -%.bom.csv: %.versioned.kicad_sch %.versioned.kicad_pro - eeschema_do bom_xml $< . - kibom $*.versioned.xml $@ +%.bom.xml: %.versioned.kicad_sch %.versioned.kicad_pro + $(KICAD) sch export python-bom --output $@ $< + +# export Bill of Material (as CSV) +%.bom.csv: %.bom.xml + kibom $< $@ # generate panel PANEL_DIR := panel