X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=98ebc48987c80c3cdecc27b3eacceae423b3605b;hb=aef50e92030afa8e9083d8730aa908cd8868d276;hp=17510585119a47760056cfc01c38ec14db7b5e75;hpb=c48402da50adbd9ee807ccd78835187a1af3f950;p=reprap-play.git diff --git a/Makefile b/Makefile index 1751058..98ebc48 100644 --- a/Makefile +++ b/Makefile @@ -19,11 +19,14 @@ 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 + $(SLIC3R) --load $^ --ignore-nonexistent-config --load $*.slic3r --output $@.tmp @mv -f $@.tmp $@ #%.gcode: %.stl