-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 $^ --ignore-nonexistent-config --load $*.slic3r --output $@.tmp
+ @mv -f $@.tmp $@
#%.gcode: %.stl
# $(SKEINFORGE) $<
$< $@ >$@.tmp
@mv -f $@.tmp $@
+.PRECIOUS: %.stl %.gcode
+
clean:
rm -f *~ *.stl *.auto.scad *.gcode .*.d