author | Michael Krelin <hacker@klever.net> | 2018-08-31 20:27:35 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-31 20:27:35 (UTC) |
commit | f2ae6a17ee134663fc78e930e2348c466fd97540 (patch) (unidiff) | |
tree | b3403cacc27344a71aa712e413a735e63afd742a | |
parent | 050ed4666043b677b14285c67aca52663dbd0f9a (diff) | |
download | extrudery-f2ae6a17ee134663fc78e930e2348c466fd97540.zip extrudery-f2ae6a17ee134663fc78e930e2348c466fd97540.tar.gz extrudery-f2ae6a17ee134663fc78e930e2348c466fd97540.tar.bz2 |
Makefile: pass debug=false to openscad
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,37 +1,37 @@ | |||
1 | -include Makefile.local | 1 | -include Makefile.local |
2 | 2 | ||
3 | OPENSCAD_APP?=/Applications/OpenSCAD.app | 3 | OPENSCAD_APP?=/Applications/OpenSCAD.app |
4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD | 4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD |
5 | OPENSCAD_FLAGS=-D draft=false | 5 | OPENSCAD_FLAGS=-D draft=false -D debug=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,springpad}.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 | 25 | another-%-springpad.stl: another-%.scad another.scad |
26 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" | 26 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" |
27 | 27 | ||
28 | 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)) |
29 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad | 29 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad |
30 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" | 30 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" |
31 | 31 | ||
32 | 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 |
33 | @echo "Preprocessing into $@…" | 33 | @echo "Preprocessing into $@…" |
34 | @( \ | 34 | @( \ |
35 | $(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. */" ;\ |
36 | $(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \ | 36 | $(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \ |
37 | ) > $@ | 37 | ) > $@ |