From: Ian Jackson Date: Thu, 20 Sep 2012 09:27:55 +0000 (+0100) Subject: Makefile use PRECIOUS X-Git-Tag: filamentspool-v2-release~773 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=a874434bfd463fc4aeba8d6ec829c0293785c484;p=reprap-play.git Makefile use PRECIOUS --- diff --git a/Makefile b/Makefile index 317fe39..feb5c28 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,12 @@ default: -include .*.d %.stl: %.scad - openscad -d .$@.d -o $@ $< + openscad -d .$@.d -o $@.tmp $< + @mv -f $@.tmp $@ %.gcode: $(CONFIG) %.stl - $(SLIC3R) --load $^ --output $@ + $(SLIC3R) --load $^ --output $@.tmp + @mv -f $@.tmp $@ #%.gcode: %.stl # $(SKEINFORGE) $< @@ -37,5 +39,7 @@ dovecliptest.stl: doveclip.scad $< $@ >$@.tmp @mv -f $@.tmp $@ +.PRECIOUS: %.stl %.gcode + clean: rm -f *~ *.stl *.auto.scad *.gcode .*.d