2 all: moebius-core.scad moebius-mesh.scad
4 PLAY = /home/reprap/play
7 $(shell set -xe; $(PLAY)/commitid.scad.pl >commitid.scad.tmp; cmp commitid.scad.tmp commitid.scad || mv -f commitid.scad.tmp commitid.scad )
9 PYLIBS = $(shell echo *.py)
11 moebius-core.scad: genscad $(PYLIBS)
12 ./$< >$@.tmp && mv -f $@.tmp $@
14 moebius-mesh.scad: meshscad $(PYLIBS)
15 ./$< >$@.tmp && mv -f $@.tmp $@
17 AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
19 autoincs: $(AUTO_INCS)
20 scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
21 stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
24 $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*))
26 $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*))
28 .PRECIOUS: %.auto.scad
29 %.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find
34 .PRECIOUS: %.stl %.gcode %.eps %.dxf