chiark / gitweb /
findcurve: wip
[moebius3.git] / Makefile
1
2 all: moebius-core.scad moebius-mesh.scad
3
4 PLAY = /home/reprap/play
5 USING_AUTOS = moebius
6
7 $(shell set -xe; $(PLAY)/commitid.scad.pl >commitid.scad.tmp; cmp commitid.scad.tmp commitid.scad || mv -f commitid.scad.tmp commitid.scad )
8
9 PYLIBS = $(shell echo *.py)
10
11 moebius-core.scad: genscad $(PYLIBS)
12                 ./$< >$@.tmp && mv -f $@.tmp $@
13
14 moebius-mesh.scad: meshscad $(PYLIBS)
15                 ./$< >$@.tmp && mv -f $@.tmp $@
16
17 AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
18
19 symbolic.c:     symbolic.py
20                 ./symbolic.py -q >$@.tmp && mv -f $@.tmp $@
21
22 findcurve.o:    findcurve.c symbolic.c
23
24 autoincs:       $(AUTO_INCS)
25 scads:          $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
26 stls:           $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
27
28 %.auto.scads: %.scad
29         $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*))
30 %.auto.stls:
31         $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*))
32
33 .PRECIOUS: %.auto.scad
34 %.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find
35                 @echo ' write $@'
36                 $< $@ >$@.tmp
37                 @mv -f $@.tmp $@
38
39 .PRECIOUS:      %.stl %.gcode %.eps %.dxf
40