chiark / gitweb /
10254 Makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Aug 2012 21:37:35 +0000 (21:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Aug 2012 21:37:35 +0000 (21:37 +0000)
th-10254/Makefile [new file with mode: 0644]

diff --git a/th-10254/Makefile b/th-10254/Makefile
new file mode 100644 (file)
index 0000000..412a413
--- /dev/null
@@ -0,0 +1,19 @@
+
+OBJECTS= MendelSpindle
+
+all:           stls scads
+
+stls:          $(foreach f,$(OBJECTS),$f.stl)
+
+scads:         $(foreach f,$(OBJECTS),$f.scad)
+
+%.stl: %.scad FilamentSpool.scad Libs.scad
+       openscad -o $@ $<
+
+HRR=/home/reprap
+SLIC3R=$(HRR)/Slic3r/bin/slic3r
+CONFIG=$(HRR)/play/slic3r-config.ini
+
+%.gcode:       $(CONFIG) %.stl
+               $(SLIC3R) --load $^ --output $@
+