author | Michael Krelin <hacker@klever.net> | 2018-08-31 22:59:24 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-31 22:59:24 (UTC) |
commit | cd927d0605caa6c8fa87432bdb5801770f7e03a2 (patch) (unidiff) | |
tree | b27b6a97969626d8771f8ee9a9e77154f8b207f0 | |
parent | dbb65b81174fe62a2253d926a54cf8613f71e6de (diff) | |
download | extrudery-cd927d0605caa6c8fa87432bdb5801770f7e03a2.zip extrudery-cd927d0605caa6c8fa87432bdb5801770f7e03a2.tar.gz extrudery-cd927d0605caa6c8fa87432bdb5801770f7e03a2.tar.bz2 |
knob label as a separate stl
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | another.scad | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -11,22 +11,24 @@ default: | |||
11 | @echo "And?" | 11 | @echo "And?" |
12 | 12 | ||
13 | clean: | 13 | clean: |
14 | rm -f *.stl *.gcode | 14 | rm -f *.stl *.gcode |
15 | 15 | ||
16 | stl-another-%: | 16 | stl-another-%: |
17 | $(MAKE) another-$*-{body,body-label,lever,knob,springpad}.stl | 17 | $(MAKE) another-$*-{body,body-label,lever,knob,knob-label,springpad}.stl |
18 | 18 | ||
19 | another-%-body.stl: another-%.scad another.scad | 19 | another-%-body.stl: another-%.scad another.scad |
20 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" | 20 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" |
21 | another-%-body-label.stl: another-%.scad another.scad | 21 | another-%-body-label.stl: another-%.scad another.scad |
22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<" | 22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<" |
23 | another-%-lever.stl: another-%.scad another.scad | 23 | another-%-lever.stl: another-%.scad another.scad |
24 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" | 24 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" |
25 | another-%-knob.stl: another-%.scad another.scad | 25 | another-%-knob.stl: another-%.scad another.scad |
26 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<" | 26 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<" |
27 | another-%-knob-label.stl: another-%.scad another.scad | ||
28 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob.label"' -o "$@" "$<" | ||
27 | another-%-springpad.stl: another-%.scad another.scad | 29 | another-%-springpad.stl: another-%.scad another.scad |
28 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" | 30 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" |
29 | 31 | ||
30 | multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6)) | 32 | multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6)) |
31 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad | 33 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad |
32 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" | 34 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" |
diff --git a/another.scad b/another.scad index 3c4f27a..1c6d836 100644 --- a/another.scad +++ b/another.scad | |||
@@ -476,12 +476,13 @@ module the_extruder( | |||
476 | mirrorleft() | 476 | mirrorleft() |
477 | debug() | 477 | debug() |
478 | if(what=="lever") color("green",0.7) lever(); | 478 | if(what=="lever") color("green",0.7) lever(); |
479 | else if(what=="body") color("yellow",0.7) body(); | 479 | else if(what=="body") color("yellow",0.7) body(); |
480 | else if(what=="body.label") color("brown",0.7) body_label(); | 480 | else if(what=="body.label") color("brown",0.7) body_label(); |
481 | else if(what=="knob") color("red",0.7) knob(); | 481 | else if(what=="knob") color("red",0.7) knob(); |
482 | else if(what=="knob.label") color("brown",0.7) knob_label(); | ||
482 | else if(what=="springpad") color("blue",0.7) springpad(); | 483 | else if(what=="springpad") color("blue",0.7) springpad(); |
483 | else if(what=="both") { | 484 | else if(what=="both") { |
484 | color("green",0.7) lever(); | 485 | color("green",0.7) lever(); |
485 | color("yellow",0.7) body(); | 486 | color("yellow",0.7) body(); |
486 | color("brown",0.7) body_label(); | 487 | color("brown",0.7) body_label(); |
487 | }else{ | 488 | }else{ |