X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=b21432af57457d8f10a82ca030455a78619db099;hb=a29378146839f57ef9d3e6da599935ba92a577f8;hp=af3f76d779b9c460164c520595c1c90477859616;hpb=2f3192186dfa30aba68ad655ac22fc63ca819f3a;p=reprap-play.git diff --git a/Makefile b/Makefile index af3f76d..b21432a 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,15 @@ CONFIG=slic3r-config.ini AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m)) -scads: $(addsuffix .scad, $(AUTO_TOPLEVELS)) -stls: $(addsuffix .stl, $(AUTO_TOPLEVELS)) +scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS)) +stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS)) default: +-include .*.d + %.stl: %.scad - openscad -o $@ $< + openscad -d .$@.d -o $@ $< %.gcode: $(CONFIG) %.stl $(SLIC3R) --load $^ --output $@ @@ -22,11 +24,14 @@ default: # $(SKEINFORGE) $< %.gcode: manual-gcode-generator %.m-g - ./$^ >$@.new && mv -f $@.new $@ + ./$^ >$@.tmp && mv -f $@.tmp $@ dovecliptest.stl: doveclip.scad -%.scad: toplevel-make Makefile toplevel-find +%.auto.scad: toplevel-make Makefile toplevel-find @echo ' write $@' - ./$< $@ >$@.new - @mv -f $@.new $@ + ./$< $@ >$@.tmp + @mv -f $@.tmp $@ + +clean: + rm -f *~ *.stl *.auto.scad *.gcode .*.d