chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filamentspool, Makefile: automatic toplevels
[reprap-play.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index d31e0a909e4c5747a1d7de2e86e11c6066e512d6..af3f76d779b9c460164c520595c1c90477859616 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-5,6
+5,11
@@
SKEINFORGE=python $(HRR)/reprappro-software.git/skeinforge/skeinforge_applicatio
CONFIG=slic3r-config.ini
CONFIG=slic3r-config.ini
+AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m))
+
+scads: $(addsuffix .scad, $(AUTO_TOPLEVELS))
+stls: $(addsuffix .stl, $(AUTO_TOPLEVELS))
+
default:
%.stl: %.scad
default:
%.stl: %.scad
@@
-20,3
+25,8
@@
default:
./$^ >$@.new && mv -f $@.new $@
dovecliptest.stl: doveclip.scad
./$^ >$@.new && mv -f $@.new $@
dovecliptest.stl: doveclip.scad
+
+%.scad: toplevel-make Makefile toplevel-find
+ @echo ' write $@'
+ ./$< $@ >$@.new
+ @mv -f $@.new $@