author | Michael Krelin <hacker@klever.net> | 2018-07-31 20:52:09 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-07-31 20:52:09 (UTC) |
commit | 0709ab26b17a92de950024f82a0295c06ab8fe3d (patch) (unidiff) | |
tree | c235ed5fabafc24d91495d7ae3799864eb803106 /Makefile | |
parent | 96cccfff8152141c0bea3972847579ebfef09d0d (diff) | |
download | extrudery-0709ab26b17a92de950024f82a0295c06ab8fe3d.zip extrudery-0709ab26b17a92de950024f82a0295c06ab8fe3d.tar.gz extrudery-0709ab26b17a92de950024f82a0295c06ab8fe3d.tar.bz2 |
generate multiswitch stls
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,12 +20,16 @@ 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 | 25 | ||
26 | multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6)) | ||
27 | multiswitch-embeddest-%.stl: multiswitch-embeddest.scad | ||
28 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<" | ||
29 | |||
26 | multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad | 30 | multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad |
27 | @echo "Preprocessing into $@…" | 31 | @echo "Preprocessing into $@…" |
28 | @( \ | 32 | @( \ |
29 | $(ECHO) "/* DO NOT. JUST DO NOT. FORGET THIS FILE, IT'S PREPROCESSED, GET THE SOURCE. */" ;\ | 33 | $(ECHO) "/* DO NOT. JUST DO NOT. FORGET THIS FILE, IT'S PREPROCESSED, GET THE SOURCE. */" ;\ |
30 | $(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \ | 34 | $(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \ |
31 | ) > $@ | 35 | ) > $@ |