make: use kicad-cli to export fabrication (kikit does not support v7 yet)

This commit is contained in:
King Kévin 2023-02-06 13:04:10 +01:00
parent b066d8b473
commit 8fa5152b25
1 changed files with 7 additions and 2 deletions

View File

@ -33,8 +33,13 @@ all: ${NAME}.sch.pdf ${NAME}.brd-top.png ${NAME}.brd-bot.png ${NAME}.bom.csv fab
fab: ${FABRICATION_DIR} ${IBOM}
# generate fabrication files (gerbers/drill/BoM/PnP)
${FABRICATION_DIR}: ${NAME}.versioned.kicad_sch ${NAME}.versioned.kicad_pcb
kikit fab jlcpcb --drc --assembly --schematic $^ $@
#${FABRICATION_DIR}: ${NAME}.versioned.kicad_sch ${NAME}.versioned.kicad_pcb
# kikit fab jlcpcb --drc --assembly --schematic $^ $@
${FABRICATION_DIR}: ${NAME}.versioned.kicad_pcb ${NAME}.versioned.kicad_sch
mkdir -p ${FABRICATION_DIR}
$(KICAD) pcb export gerbers --output ${FABRICATION_DIR} $<
$(KICAD) pcb export drill --output ${FABRICATION_DIR}/ $<
$(KICAD) pcb export pos --output ${FABRICATION_DIR}/${NAME}.versioned.pos $<
# generate interactive BoM
${IBOM}: ${NAME}.versioned.kicad_pcb