chiark
/
gitweb
/
~ijackson
/
dl-things.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
8317 shorten extension arms again
[dl-things.git]
/
th-8317
/
Makefile
diff --git
a/th-8317/Makefile
b/th-8317/Makefile
index 1939ded4ef3ed835b7428eca76a4ad795bcc0f71..d93d84c5bfb415eecbffd7844fa2a1b12e3a93b8 100644
(file)
--- a/
th-8317/Makefile
+++ b/
th-8317/Makefile
@@
-7,11
+7,23
@@
stls: $(foreach f,$(OBJECTS),iwj-$f.stl)
scads: $(foreach f,$(OBJECTS),iwj-$f.scad)
scads: $(foreach f,$(OBJECTS),iwj-$f.scad)
-iwj-%.scad:
+SETTINGS_ForkClip= filamentSize=1.75,slotSize=[6.9,10],armLength=56,forkSize=[50,60,5]
+SETTINGS_ExtensionArm= length=60
+SETTINGS_ArmEnd= length=80
+
+iwj-%.scad: Makefile
@echo ' write $@'
@echo >$@.new 'include <FilamentSpool.scad>'
@echo ' write $@'
@echo >$@.new 'include <FilamentSpool.scad>'
- @echo >>$@.new '$*();'
+ @echo >>$@.new '$*(
$(SETTINGS_$*)
);'
@mv -f $@.new $@
@mv -f $@.new $@
-%.stl: %.scad
+%.stl: %.scad
FilamentSpool.scad Libs.scad
openscad -o $@ $<
openscad -o $@ $<
+
+HRR=/home/reprap
+SLIC3R=$(HRR)/Slic3r/bin/slic3r
+CONFIG=$(HRR)/play/slic3r-config.ini
+
+%.gcode: $(CONFIG) %.stl
+ $(SLIC3R) --load $^ --output $@
+