chiark / gitweb /
8317 Makefile: add gcode conversion
[dl-things.git] / th-8317 / Makefile
index 1c87474b0e960240eec599efce004b89d6710b9b..88acdbd7c3be62fe70682d2130daedc196b33439 100644 (file)
@@ -15,3 +15,11 @@ iwj-%.scad:
 
 %.stl: %.scad FilamentSpool.scad
        openscad -o $@ $<
+
+HRR=/home/reprap
+SLIC3R=$(HRR)/Slic3r/bin/slic3r
+CONFIG=$(HRR)/play/slic3r-config.ini
+
+%.gcode:       $(CONFIG) %.stl
+               $(SLIC3R) --load $^ --output $@
+