AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m))
-scads: $(addsuffix .ascad, $(AUTO_TOPLEVELS))
-stls: $(addsuffix .stl, $(AUTO_TOPLEVELS))
+scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
+stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
default:
%.stl: %.scad
openscad -d .$@.d -o $@ $<
-%.stl: %.ascad
- openscad -d .$@.d -o $@ $<
-
%.gcode: $(CONFIG) %.stl
$(SLIC3R) --load $^ --output $@
dovecliptest.stl: doveclip.scad
-%.ascad: toplevel-make Makefile toplevel-find
+%.auto.scad: toplevel-make Makefile toplevel-find
@echo ' write $@'
./$< $@ >$@.tmp
@mv -f $@.tmp $@
clean:
- rm -f *~ *.stl *,*.scad *.gcode .*.d
+ rm -f *~ *.stl *.auto.scad *.gcode .*.d