chiark / gitweb /
filamenttrestle colourful demo
[reprap-play.git] / Makefile
index feb5c2876ea4697a8194869f9e65cb471600e797..98ebc48987c80c3cdecc27b3eacceae423b3605b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,14 @@ default:
 -include .*.d
 
 %.stl:         %.scad
-               openscad -d .$@.d -o $@.tmp $<
-               @mv -f $@.tmp $@
+               openscad -d .$@.d.tmp -o $*.tmp.stl $<
+               @rm -f $@
+               @sed -e 's/\.tmp\.stl:/.stl:/' <.$@.d.tmp >.$@.d
+               @rm .$@.d.tmp
+               mv -f $*.tmp.stl $@
 
 %.gcode:       $(CONFIG) %.stl
-               $(SLIC3R) --load $^ --output $@.tmp
+               $(SLIC3R) --load $^ --ignore-nonexistent-config --load $*.slic3r --output $@.tmp
                @mv -f $@.tmp $@
 
 #%.gcode:      %.stl