From db966c966929dd3abc29ebab7ce47d638ba4a94f Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 24 Dec 2024 12:39:34 +0100 Subject: WIP: Move `mech` directory to `case` TODO: There are outdated references (see grep -R mech .) The directory name should reflect what is inside, not the field of engineering it belongs to. --- case/mech.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 case/mech.mk (limited to 'case/mech.mk') diff --git a/case/mech.mk b/case/mech.mk new file mode 100644 index 0000000..ca39a7c --- /dev/null +++ b/case/mech.mk @@ -0,0 +1,17 @@ +PRINTER := anycubic_i3_mega_s +PRINTER_CONFIG := $(PRINTER:%=mech/prusa-slicer/%.ini) +MECH_BUILD_DIR := $(BUILD_DIR)/mech +PARTS := assembly production pcb_case/tolerance_tests +STL := $(PARTS:%=$(MECH_BUILD_DIR)/%.stl) +GCODE := $(PARTS:%=$(MECH_BUILD_DIR)/%.gcode) + +.PHONY: mech +mech: $(GCODE) $(STL) + +$(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl + mkdir -p $(dir $@) + prusa-slicer --load $(PRINTER_CONFIG) --output $@ --export-gcode $< + +$(BUILD_DIR)/%.stl: %.scad + mkdir -p $(dir $@) + openscad --hardwarnings --export-format binstl -o $@ $< -- cgit v1.2.3-70-g09d2