all: moebius-core.scad
PLAY = /home/reprap/play
+USING_AUTOS = moebius
$(shell set -xe; $(PLAY)/commitid.scad.pl >commitid.scad.tmp; cmp commitid.scad.tmp commitid.scad || mv -f commitid.scad.tmp commitid.scad )
moebius-core.scad: genscad moebius.py
./$< >$@.tmp && mv -f $@.tmp $@
+
+AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
+
+autoincs: $(AUTO_INCS)
+scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
+stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
+
+%.auto.scads: %.scad
+ $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*))
+%.auto.stls:
+ $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*))
+
+.PRECIOUS: %.auto.scad
+%.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find
+ @echo ' write $@'
+ $< $@ >$@.tmp
+ @mv -f $@.tmp $@
+
+.PRECIOUS: %.stl %.gcode %.eps %.dxf
+
Pin();
}
-module TestKit(){
+module TestKit(){ ////toplevel
intersection(){
Kit();
cube([500,500,15], center=true);
//Bottom();
//Kit();
//Demo();
-TestKit();
+//TestKit();