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 axle bugfix hub does not fit lengthwise
[reprap-play.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index af3f76d779b9c460164c520595c1c90477859616..b21432af57457d8f10a82ca030455a78619db099 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-7,13
+7,15
@@
CONFIG=slic3r-config.ini
AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m))
AUTO_TOPLEVELS := $(foreach m, filamentspool, $(shell ./toplevel-find $m))
-scads: $(addsuffix .scad, $(AUTO_TOPLEVELS))
-stls: $(addsuffix .stl, $(AUTO_TOPLEVELS))
+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 $@
@@
-22,11
+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
dovecliptest.stl: doveclip.scad
-%.scad: toplevel-make Makefile toplevel-find
+%.
auto.
scad: toplevel-make Makefile toplevel-find
@echo ' write $@'
@echo ' write $@'
- ./$< $@ >$@.new
- @mv -f $@.new $@
+ ./$< $@ >$@.tmp
+ @mv -f $@.tmp $@
+
+clean:
+ rm -f *~ *.stl *.auto.scad *.gcode .*.d