Update Makefile

This commit is contained in:
Zane Kaminski 2023-11-07 15:35:45 -05:00
parent c5cdffd937
commit ca9137b20d

View File

@ -4,9 +4,9 @@ LAYERS = F.Cu,In1.Cu,In2.Cu,B.Cu,F.Paste,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts
F_PCB = $@/../RAM128.kicad_pcb F_PCB = $@/../RAM128.kicad_pcb
F_SCH = $@/../RAM128.kicad_sch F_SCH = $@/../RAM128.kicad_sch
F_POS = $@/RAM128-top-pos.csv F_POS = $@/RAM128-top-pos.csv
F_ZIP = RAM128.4208B-gerber.zip F_ZIP = $@/RAM128.4208B-gerber.zip
F_SCHPDF = RAM128.4208B-Schematic.pdf F_SCHPDF = $@/RAM128.4208B-Schematic.pdf
F_PCBPDF = RAM128.4208B-Placement.pdf F_PCBPDF = $@/RAM128.4208B-Placement.pdf
OPT_GERBER = -l $(LAYERS) --subtract-soldermask --no-netlist --no-x2 OPT_GERBER = -l $(LAYERS) --subtract-soldermask --no-netlist --no-x2
@ -17,14 +17,16 @@ CMD_DRILL = pcb export drill -o $@/ $(F_PCB)
OPT_POS = --smd-only --units mm --side front --format csv OPT_POS = --smd-only --units mm --side front --format csv
CMD_POS = pcb export pos $(OPT_POS) -o $(F_POS) $(F_PCB) CMD_POS = pcb export pos $(OPT_POS) -o $(F_POS) $(F_PCB)
CMD_SCHPDF = sch export pdf --black-and-white --no-background-color -o $@/$(F_SCHPDF) $(F_SCH) CMD_SCHPDF = sch export pdf --black-and-white --no-background-color -o $(F_SCHPDF) $(F_SCH)
CMD_PCBPDF = pcb export pdf --black-and-white -l F.Fab,Edge.Cuts -o $@/$(F_PCBPDF) $(F_PCB) CMD_PCBPDF = pcb export pdf --black-and-white -l F.Fab,Edge.Cuts -o $(F_PCBPDF) $(F_PCB)
.PHONY: all clean gerber Documentation .PHONY: all clean gerber Documentation
all: gerber Documentation all: gerber Documentation
clean: clean:
rm -fr gerber/ rm -fr gerber/
rm -f Documentation/RAM128.4208B-Schematic.pdf
rm -f Documentation/RAM128.4208B-Placement.pdf
gerber: gerber:
mkdir -p $@ mkdir -p $@
@ -34,7 +36,7 @@ gerber:
sed -i '' 's/PosX/MidX/g' $(F_POS) sed -i '' 's/PosX/MidX/g' $(F_POS)
sed -i '' 's/PosY/MidY/g' $(F_POS) sed -i '' 's/PosY/MidY/g' $(F_POS)
sed -i '' 's/Rot/Rotation/g' $(F_POS) sed -i '' 's/Rot/Rotation/g' $(F_POS)
zip -r $@/$(F_ZIP) $@/ zip -r $(F_ZIP) $@/
Documentation: Documentation:
mkdir -p $@ mkdir -p $@
$(KICAD) $(CMD_SCHPDF) $(KICAD) $(CMD_SCHPDF)