From 7224aa0c74ae51f49e87e9c18bc94c2761dadf24 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 22 Dec 2023 20:45:48 +0100 Subject: mech: Add initial state This code used to be developed outside a Git repository. It is moved here to support the development workflow by frequent commits. --- mech/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mech/Makefile (limited to 'mech/Makefile') diff --git a/mech/Makefile b/mech/Makefile new file mode 100644 index 0000000..1f80d35 --- /dev/null +++ b/mech/Makefile @@ -0,0 +1,19 @@ +PARTS := bottom top back front +BUILD_DIR := ./build +STL := $(PARTS:%=$(BUILD_DIR)/%.stl) +GCODE := $(PARTS:%=$(BUILD_DIR)/%.gcode) + +.PHONY: all +all: $(GCODE) + +$(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl + mkdir -p $(dir $@) + prusa-slicer --output $@ --export-gcode $< + +$(BUILD_DIR)/%.stl: %.scad + mkdir -p $(dir $@) + openscad --export-format binstl -o $@ $< + +.PHONY: clean +clean: + rm -rf $(BUILD_DIR) -- cgit v1.2.3-70-g09d2