chiark / gitweb /
slic3r-config use cooling it is good
[reprap-play.git] / Makefile
index df8862d648336ffb5e0dfde465375e33bfa5ae47..17510585119a47760056cfc01c38ec14db7b5e75 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@ HRR=/home/reprap
 SLIC3R=$(HRR)/Slic3r/bin/slic3r
 SKEINFORGE=python $(HRR)/reprappro-software.git/skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py
 
-PLAY ?= .
+CWD := $(shell pwd)
+PLAY ?= $(CWD)
 
 CONFIG=slic3r-config.ini
 
@@ -18,10 +19,12 @@ default:
 -include .*.d
 
 %.stl:         %.scad
-               openscad -d .$@.d -o $@ $<
+               openscad -d .$@.d -o $*.tmp.stl $<
+               @mv -f $*.tmp.stl $@
 
 %.gcode:       $(CONFIG) %.stl
-               $(SLIC3R) --load $^ --output $@
+               $(SLIC3R) --load $^ --output $@.tmp
+               @mv -f $@.tmp $@
 
 #%.gcode:      %.stl
 #              $(SKEINFORGE) $<
@@ -36,5 +39,7 @@ dovecliptest.stl: doveclip.scad
                $< $@ >$@.tmp
                @mv -f $@.tmp $@
 
+.PRECIOUS:     %.stl %.gcode
+
 clean:
                rm -f *~ *.stl *.auto.scad *.gcode .*.d