summaryrefslogtreecommitdiff
path: root/Makefile
authorMichael Krelin <hacker@klever.net>2018-07-31 20:52:09 (UTC)
committer Michael Krelin <hacker@klever.net>2018-07-31 20:52:09 (UTC)
commit0709ab26b17a92de950024f82a0295c06ab8fe3d (patch) (side-by-side diff)
treec235ed5fabafc24d91495d7ae3799864eb803106 /Makefile
parent96cccfff8152141c0bea3972847579ebfef09d0d (diff)
downloadextrudery-0709ab26b17a92de950024f82a0295c06ab8fe3d.zip
extrudery-0709ab26b17a92de950024f82a0295c06ab8fe3d.tar.gz
extrudery-0709ab26b17a92de950024f82a0295c06ab8fe3d.tar.bz2
generate multiswitch stls
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a488056..1d758a3 100644
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,16 @@ another-%-body.stl: another-%.scad another.scad
$(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<"
another-%-lever.stl: another-%.scad another.scad
$(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<"
another-%-knob.stl: another-%.scad another.scad
$(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<"
+multiswitch: multiswitch.c8r.scad $(addsuffix .stl,$(addprefix multiswitch-embeddest-,2 3 4 5 6))
+multiswitch-embeddest-%.stl: multiswitch-embeddest.scad
+ $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D inputs=$* -o "$@" "$<"
+
multiswitch.c8r.scad: multiswitch-c8r.scad threads.scad pushfit_data.scad pushfittery.scad multiswitch.scad
@echo "Preprocessing into $@…"
@( \
$(ECHO) "/* DO NOT. JUST DO NOT. FORGET THIS FILE, IT'S PREPROCESSED, GET THE SOURCE. */" ;\
$(AWK) '/^\/\/CUSTOMIZERCUTOFF/ {nextfile} {print}' $^ | $(SED) -Ee 's,^(use|include),//\1,g' \
) > $@