mirror of
https://github.com/garrettsworkshop/MacIIROMSIMM.git
synced 2025-01-02 17:30:35 +00:00
Update makefile to add BOM generation
This commit is contained in:
parent
27e58f3137
commit
dc42ffdef2
10
Makefile
10
Makefile
@ -1,8 +1,13 @@
|
||||
KICAD = /Applications/KiCad/KiCad.app/Contents/MacOS/kicad-cli
|
||||
LAYERS = F.Cu,In1.Cu,In2.Cu,B.Cu,F.Paste,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts
|
||||
|
||||
PYTHON = python3
|
||||
BOM_SCRIPT = ../GW_KiCADBuild/export_bom.py
|
||||
|
||||
F_PCB = $@/../MacIIROMSIMM.kicad_pcb
|
||||
F_SCH = $@/../MacIIROMSIMM.kicad_sch
|
||||
F_NETLIST = $@/MacIIROMSIMM-NET.xml
|
||||
F_BOM = $@/MacIIROMSIMM-BOM.csv
|
||||
F_POS = $@/MacIIROMSIMM-top-pos.csv
|
||||
F_ZIP = $@/MacIIROMSIMM.4402B-gerber.zip
|
||||
F_SCHPDF = $@/MacIIROMSIMM.4402B-Schematic.pdf
|
||||
@ -14,6 +19,8 @@ CMD_GERBER = pcb export gerbers $(OPT_GERBER) -o $@/ $(F_PCB)
|
||||
|
||||
CMD_DRILL = pcb export drill -o $@/ $(F_PCB)
|
||||
|
||||
CMD_NETLIST = sch export netlist --format kicadxml -o $(F_NETLIST) $(F_SCH)
|
||||
|
||||
OPT_POS = --smd-only --units mm --side front --format csv
|
||||
CMD_POS = pcb export pos $(OPT_POS) -o $(F_POS) $(F_PCB)
|
||||
|
||||
@ -33,9 +40,12 @@ gerber:
|
||||
$(KICAD) $(CMD_GERBER)
|
||||
$(KICAD) $(CMD_DRILL)
|
||||
$(KICAD) $(CMD_POS)
|
||||
$(KICAD) $(CMD_NETLIST)
|
||||
sed -i '' 's/PosX/MidX/g' $(F_POS)
|
||||
sed -i '' 's/PosY/MidY/g' $(F_POS)
|
||||
sed -i '' 's/Rot/Rotation/g' $(F_POS)
|
||||
$(PYTHON) $(BOM_SCRIPT) $(F_NETLIST) $(F_BOM)
|
||||
rm -f $(F_ZIP)
|
||||
zip -r $(F_ZIP) $@/
|
||||
Documentation:
|
||||
mkdir -p $@
|
||||
|
Loading…
Reference in New Issue
Block a user