author | Michael Krelin <hacker@klever.net> | 2018-08-06 16:54:53 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-06 16:54:53 (UTC) |
commit | 0c87c56ff30c8f72e6348482a95a07841ce93e10 (patch) (unidiff) | |
tree | 4cb3fca93e61f91142ad5d87d1e2c08af1090c07 /Makefile | |
parent | 505fcb9ec7ca622e37b23e9032ff3f1d45b6acea (diff) | |
download | extrudery-0c87c56ff30c8f72e6348482a95a07841ce93e10.zip extrudery-0c87c56ff30c8f72e6348482a95a07841ce93e10.tar.gz extrudery-0c87c56ff30c8f72e6348482a95a07841ce93e10.tar.bz2 |
Makefile: add springpad to extruder build
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5,32 +5,34 @@ OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD | |||
5 | OPENSCAD_FLAGS=-D draft=false | 5 | OPENSCAD_FLAGS=-D draft=false |
6 | SED?=sed | 6 | SED?=sed |
7 | ECHO?=/bin/echo | 7 | ECHO?=/bin/echo |
8 | AWK?=awk | 8 | AWK?=awk |
9 | 9 | ||
10 | default: | 10 | 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,lever,knob}.stl | 17 | $(MAKE) another-$*-{body,lever,knob,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-%-lever.stl: another-%.scad another.scad | 21 | another-%-lever.stl: another-%.scad another.scad |
22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" | 22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" |
23 | another-%-knob.stl: another-%.scad another.scad | 23 | another-%-knob.stl: another-%.scad another.scad |
24 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<" | 24 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<" |
25 | another-%-springpad.stl: another-%.scad another.scad | ||
26 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" | ||
25 | 27 | ||
26 | multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6)) | 28 | multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6)) |
27 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad | 29 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad |
28 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" | 30 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" |
29 | 31 | ||
30 | multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad | 32 | multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad |
31 | @echo "Preprocessing into $@…" | 33 | @echo "Preprocessing into $@…" |
32 | @( \ | 34 | @( \ |
33 | $(ECHO) "/* DO NOT. JUST DO NOT. FORGET THIS FILE, IT'S PREPROCESSED, GET THE SOURCE. */" ;\ | 35 | $(ECHO) "/* DO NOT. JUST DO NOT. FORGET THIS FILE, IT'S PREPROCESSED, GET THE SOURCE. */" ;\ |
34 | $(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \ | 36 | $(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \ |
35 | ) > $@ | 37 | ) > $@ |
36 | 38 | ||