X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=Makefile;h=b5d73e6122ecb4c268e2e06b34a9bccebcdc1cdf;hp=17510585119a47760056cfc01c38ec14db7b5e75;hb=f0c08a6f2f430a392ed419a34934b921aad20f13;hpb=c48402da50adbd9ee807ccd78835187a1af3f950 diff --git a/Makefile b/Makefile index 1751058..b5d73e6 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,11 @@ default: -include .*.d %.stl: %.scad - openscad -d .$@.d -o $*.tmp.stl $< - @mv -f $*.tmp.stl $@ + 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