CONFIG=slic3r-config.ini
+AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m))
+
+scads: $(addsuffix .scad, $(AUTO_TOPLEVELS))
+stls: $(addsuffix .stl, $(AUTO_TOPLEVELS))
+
default:
%.stl: %.scad
%.gcode: manual-gcode-generator %.m-g
./$^ >$@.new && mv -f $@.new $@
+
+dovecliptest.stl: doveclip.scad
+
+%.scad: toplevel-make Makefile toplevel-find
+ @echo ' write $@'
+ ./$< $@ >$@.new
+ @mv -f $@.new $@