X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=c249fed675a587ba9e4db5e993ddb5c58c454fd8;hb=fe3ce11970c7a484e8cdc7b1aa77f0843c8bf23a;hp=fc2834a29850b7636e75d6515105168e81b8d0e9;hpb=1dfcc812e08ceb476d1785923d615ddf02775820;p=reprap-play.git diff --git a/Makefile b/Makefile index fc2834a..c249fed 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 default: autoincs scads @@ -42,11 +43,13 @@ 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 $*)) +bike-lipo-box.scad: + -include .*.d %.stl: %.scad $(AUTO_INCS) @@ -131,6 +134,9 @@ filamentspool-number-n%.eps: filamentspool-number.eps.pl FILAMENTSPOOL_DXFS=$(foreach n,$(FILAMENTSPOOL_NUMBERS), \ filamentspool-number-n$n.dxf) +$(addsuffix .auto.stl, $(foreach f,$(FILAMENTSPOOL_AUTOS),$(shell \ + ./toplevel-find $f))): $(FILAMENTSPOOL_DXFS) + filamentspool-numbers filamentspool.stl: $(FILAMENTSPOOL_DXFS) SCREWRECESSTEST_SIZES= 2 3 4 5 6 @@ -165,6 +171,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 $@'