summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0f06356
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+all: $(foreach i,0 1,Phasenanschnitt-$(i).stl)
+
+clean:
+ git clean -xdf .
+
+Phasenanschnitt-%.stl: Phasenanschnitt.scad
+ openscad -D Teil=$(lastword $(subst -, ,$(patsubst %.stl,%,$@)))\; --export-format stl -o $@ $<
+
+%.gcode: %.stl
+ prusa-slicer -g --load ~/.config/PrusaSlicer/exportedConfig.ini -o $@ $<