summaryrefslogtreecommitdiff
path: root/mech
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-12-23 19:36:05 +0100
committerxengineering <me@xengineering.eu>2024-01-02 14:24:58 +0100
commit94710631c90448fb55808772c54048216389a0dc (patch)
treeb5eddbcb9df8a8905e88e7bd1208b91e11bf6f3b /mech
parentc0497d759bd200e6d2422a8f5efb60a4a20b3957 (diff)
downloadsoundbox-94710631c90448fb55808772c54048216389a0dc.tar
soundbox-94710631c90448fb55808772c54048216389a0dc.tar.zst
soundbox-94710631c90448fb55808772c54048216389a0dc.zip
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.
Diffstat (limited to 'mech')
-rw-r--r--mech/mech.mk4
1 files changed, 3 insertions, 1 deletions
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 $@)