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
splitpin wip tuning before asymm
[reprap-play.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 840b9a6270560ceb37b3d6826fbc7591b95b1dce..b21432af57457d8f10a82ca030455a78619db099 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-5,10
+5,17
@@
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 .auto.scad, $(AUTO_TOPLEVELS))
+stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
+
default:
default:
+-include .*.d
+
%.stl: %.scad
%.stl: %.scad
- openscad -o $@ $<
+ openscad -
d .$@.d -
o $@ $<
%.gcode: $(CONFIG) %.stl
$(SLIC3R) --load $^ --output $@
%.gcode: $(CONFIG) %.stl
$(SLIC3R) --load $^ --output $@
@@
-17,4
+24,14
@@
default:
# $(SKEINFORGE) $<
%.gcode: manual-gcode-generator %.m-g
# $(SKEINFORGE) $<
%.gcode: manual-gcode-generator %.m-g
- ./$^ >$@.new && mv -f $@.new $@
+ ./$^ >$@.tmp && mv -f $@.tmp $@
+
+dovecliptest.stl: doveclip.scad
+
+%.auto.scad: toplevel-make Makefile toplevel-find
+ @echo ' write $@'
+ ./$< $@ >$@.tmp
+ @mv -f $@.tmp $@
+
+clean:
+ rm -f *~ *.stl *.auto.scad *.gcode .*.d