X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=Makefile;h=f9e81855e16a5969e8510b237a28be35678c8358;hp=6bff3bf02ec9a7a0ebca32c907ab97326bcc8c11;hb=98537f0b67e59e1e7f12def805f3b8ca382c4aaa;hpb=654ad9f16a362a2f6a2af9fda297e5f51f7ba996 diff --git a/Makefile b/Makefile index 6bff3bf..f9e8185 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ HRR=/home/reprap SLIC3R=$(HRR)/Slic3r/bin/slic3r +M4=m4 SKEINFORGE=python $(HRR)/reprappro-software.git/skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py CWD := $(shell pwd) @@ -32,7 +33,7 @@ USING_AUTOS ?= $(FILAMENTSPOOL_AUTOS) xeno-drivebay-bracket dungeonquest-cone an AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m)) -AUTO_INCS = funcs.scad +AUTO_INCS = funcs.scad utils.scad sealing-box.scad default: autoincs scads @@ -42,7 +43,7 @@ autoincs: $(AUTO_INCS) scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS)) stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS)) -%.auto.scads: +%.auto.scads: %.scad $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*)) %.auto.stls: $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*)) @@ -168,6 +169,9 @@ lemon-stand.stl: lemon-stand.scad %: %.pl ./$< >$@.tmp && mv -f $@.tmp $@ +%: %.m4 + $(M4) -P >$@.tmp $< && mv -f $@.tmp $@ + .PRECIOUS: %.auto.scad %.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find @echo ' write $@'