From 94710631c90448fb55808772c54048216389a0dc Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 23 Dec 2023 19:36:05 +0100 Subject: mech: Enable printer configuration The printer configuration should not only be added to the repository but instead should also be used for the default Make-based builds of mechanical parts. --- mech/mech.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mech') diff --git a/mech/mech.mk b/mech/mech.mk index 13b73d7..f541cf9 100644 --- a/mech/mech.mk +++ b/mech/mech.mk @@ -1,3 +1,5 @@ +PRINTER := anycubic_i3_mega_s +PRINTER_CONFIG := $(PRINTER:%=mech/prusa-slicer/%.ini) MECH_BUILD_DIR := $(BUILD_DIR)/mech PARTS := bottom top back front pcb_case/nut_tolerance_test STL := $(PARTS:%=$(MECH_BUILD_DIR)/%.stl) @@ -8,7 +10,7 @@ mech: $(GCODE) $(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl mkdir -p $(dir $@) - prusa-slicer --output $@ --export-gcode $< + prusa-slicer --load $(PRINTER_CONFIG) --output $@ --export-gcode $< $(BUILD_DIR)/%.stl: %.scad mkdir -p $(dir $@) -- cgit v1.2.3-70-g09d2