Skip to content

Commit

Permalink
fix STEP_FLAGS in svg target and missing in step target
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Aug 26, 2024
1 parent ccbaf7f commit f5c4cb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kicad.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# * Project generated data will be output to '$(PROJECT_ROOT)/output/X' by default
# * Project distributables and production .zip datapacks will be output to '$(PROJECT_ROOT)/output/dist' and '$(PROJECT_ROOT)/output/prod' by default
override KICADMK_VER = 1.2
override KICADMK_VER = 1.3

shell_output =
KICADMK_QUIET ?= 0
Expand Down Expand Up @@ -345,7 +345,7 @@ $(SCH_FOLDER)/%.pdf: $(PROJECT_ROOT)/$(PROJECT_NAME).kicad_sch | $(SCH_FOLDER)
$(KICAD_CMD) sch export pdf $(PDF_FLAGS) -o $@ $<

$(SCH_FOLDER)/%.svg: $(PROJECT_ROOT)/$(PROJECT_NAME).kicad_sch | $(SCH_FOLDER)
$(KICAD_CMD) sch export svg $(STEP_FLAGS) -o '$(@D)' $<
$(KICAD_CMD) sch export svg $(SVG_FLAGS) -o '$(@D)' $<

$(SCH_FOLDER)/%.rpt: $(PROJECT_ROOT)/$(PROJECT_NAME).kicad_sch | $(SCH_FOLDER)
$(KICAD_CMD) sch erc $(SCH_ERC_FLAGS) -o $@ $<
Expand All @@ -354,7 +354,7 @@ $(SCH_FOLDER)/%.json: $(PROJECT_ROOT)/$(PROJECT_NAME).kicad_sch | $(SCH_FOLDER)
$(KICAD_CMD) sch erc --format=json $(SCH_ERC_FLAGS) -o $@ $<

$(PCB_FOLDER)/%.step: $(PROJECT_ROOT)/$(PROJECT_NAME).kicad_pcb | $(PCB_FOLDER)
$(KICAD_CMD) pcb export step -o $@ $<
$(KICAD_CMD) pcb export step $(STEP_FLAGS) -o $@ $<

$(PCB_FOLDER)/%.layer.pdf: $(PROJECT_ROOT)/$(PROJECT_NAME).kicad_pcb | $(PCB_FOLDER)
$(KICAD_CMD) pcb export pdf $(PCB_PDF_FLAGS) --layers $(basename $(shell echo ‘$(@F)’ | $(GREP) -Eo "(\w+?_\w+?)\.\w+" | sed 's/_/./g')),Edge.Cuts -o $@ $<
Expand Down

0 comments on commit f5c4cb4

Please sign in to comment.