summaryrefslogtreecommitdiff
path: root/Makefile
authorMichael Krelin <hacker@klever.net>2018-08-31 22:28:17 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-31 22:28:17 (UTC)
commit1204538201ab6005f99507a511ffc17050194c8e (patch) (unidiff)
tree0a9b2a99252714f2cfafbf97e87b8b0e0700bcd8 /Makefile
parent875ceca4d231a22423c42d44d8d14e02d3b4ef37 (diff)
downloadextrudery-1204538201ab6005f99507a511ffc17050194c8e.zip
extrudery-1204538201ab6005f99507a511ffc17050194c8e.tar.gz
extrudery-1204538201ab6005f99507a511ffc17050194c8e.tar.bz2
body label as a separate STL
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1532827..6393033 100644
--- a/Makefile
+++ b/Makefile
@@ -5,28 +5,30 @@ OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD
5OPENSCAD_FLAGS=-D draft=false -D debug=false 5OPENSCAD_FLAGS=-D draft=false -D debug=false
6SED?=sed 6SED?=sed
7ECHO?=/bin/echo 7ECHO?=/bin/echo
8AWK?=awk 8AWK?=awk
9 9
10default: 10default:
11 @echo "And?" 11 @echo "And?"
12 12
13clean: 13clean:
14 rm -f *.stl *.gcode 14 rm -f *.stl *.gcode
15 15
16stl-another-%: 16stl-another-%:
17 $(MAKE) another-$*-{body,lever,knob,springpad}.stl 17 $(MAKE) another-$*-{body,body-label,lever,knob,springpad}.stl
18 18
19another-%-body.stl: another-%.scad another.scad 19another-%-body.stl: another-%.scad another.scad
20 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" 20 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<"
21another-%-body-label.stl: another-%.scad another.scad
22 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<"
21another-%-lever.stl: another-%.scad another.scad 23another-%-lever.stl: another-%.scad another.scad
22 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" 24 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<"
23another-%-knob.stl: another-%.scad another.scad 25another-%-knob.stl: another-%.scad another.scad
24 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<" 26 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<"
25another-%-springpad.stl: another-%.scad another.scad 27another-%-springpad.stl: another-%.scad another.scad
26 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" 28 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<"
27 29
28multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6)) 30multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6))
29multiswitch-embeddest-%.stl: multiswitch-embeddest.scad 31multiswitch-embeddest-%.stl: multiswitch-embeddest.scad
30 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" 32 $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<"
31 33
32multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad 34multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad