-AUTO_INCS = funcs.scad
-
-default: autoincs scads
-
-autoincs: $(AUTO_INCS)
-scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
-stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
-
-%.auto.scads:
- $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*))
-%.auto.stls:
- $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*))
-
--include .*.d
-
-%.stl: %.scad $(AUTO_INCS)
- 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 $@
-
-AUTOBASE=$(shell echo $(1) | perl -pe 's/,\w+\.auto$$//')
-
-%.gcode: %.stl $(CONFIG)
- $(SLIC3R) --load $(CONFIG) \
- --ignore-nonexistent-config \
- --load $(call AUTOBASE,$*).slic3r \
- --load $*.slic3r \
- --output $@.tmp $<
- @mv -f $@.tmp $@
-
-%.gcode-sd: %.gcode
- mount /media/sd
- cp $^ /media/sd/JOB.G
- sleep 0.5
- umount /media/sd
-
-%: %.cpp
- cpp -nostdinc -P <$< >$@.tmp && mv -f $@.tmp $@
-
-funcs.scad:
-
-#%.gcode: %.stl
-# $(SKEINFORGE) $<
-
-%.gcode: manual-gcode-generator %.m-g
- $(PLAY)/$^ >$@.tmp && mv -f $@.tmp $@