diff options
-rw-r--r-- | pcb/pcb.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2,6 +2,7 @@ SOUNDBOX_KICAD_SCH := pcb/soundbox.kicad_sch PCB_BUILD_DIR := $(BUILD_DIR)/pcb BOM := $(PCB_BUILD_DIR)/bom.csv SCHEMATIC_PDF := $(PCB_BUILD_DIR)/schematic.pdf +ERC_REPORT := $(PCB_BUILD_DIR)/erc.rpt .PHONY: pcb pcb: $(BOM) $(SCHEMATIC_PDF) @@ -16,3 +17,7 @@ $(BOM): $(SOUNDBOX_KICAD_SCH) $(SCHEMATIC_PDF): $(SOUNDBOX_KICAD_SCH) mkdir -p $(dir $@) kicad-cli sch export pdf --output $@ $< + +$(ERC_REPORT): $(SOUNDBOX_KICAD_SCH) + mkdir -p $(dir $@) + kicad-cli sch erc --exit-code-violations --output $@ $< |