diff options
-rw-r--r-- | pcb/pcb.mk | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 $@ $< |