|
diff --git a/Makefile b/Makefile index 6393033..5753a68 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -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 "$@" "$<" |
|