chiark / gitweb /
bike-lipo-box: TestSeal: wip
[reprap-play.git] / Makefile
index fc2834a29850b7636e75d6515105168e81b8d0e9..7e8704a7430204567e57e086f00b137fcbdab632 100644 (file)
--- 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)
@@ -131,6 +132,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 +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 $@'