X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=Makefile;h=b5d73e6122ecb4c268e2e06b34a9bccebcdc1cdf;hp=317fe3987b334c153c4819ce5356e7be6eb68439;hb=ac212e54d738a58f6c7e1a0fa49904ee06cfd543;hpb=949c67dd9deab6f8359127e646a8f038498ef2d1 diff --git a/Makefile b/Makefile index 317fe39..b5d73e6 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,15 @@ default: -include .*.d %.stl: %.scad - openscad -d .$@.d -o $@ $< + 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 $@ + $(SLIC3R) --load $^ --output $@.tmp + @mv -f $@.tmp $@ #%.gcode: %.stl # $(SKEINFORGE) $< @@ -37,5 +42,7 @@ dovecliptest.stl: doveclip.scad $< $@ >$@.tmp @mv -f $@.tmp $@ +.PRECIOUS: %.stl %.gcode + clean: rm -f *~ *.stl *.auto.scad *.gcode .*.d