chiark / gitweb /
Makefile openscad use .tmp.stl
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 20 Sep 2012 09:45:49 +0000 (10:45 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 20 Sep 2012 09:45:49 +0000 (10:45 +0100)
Makefile

index feb5c28..1751058 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,8 @@ default:
 -include .*.d
 
 %.stl:         %.scad
-               openscad -d .$@.d -o $@.tmp $<
-               @mv -f $@.tmp $@
+               openscad -d .$@.d -o $*.tmp.stl $<
+               @mv -f $*.tmp.stl $@
 
 %.gcode:       $(CONFIG) %.stl
                $(SLIC3R) --load $^ --output $@.tmp