summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile4
-rw-r--r--multiswitch-embeddest.scad4
2 files changed, 8 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' \
) > $@
diff --git a/multiswitch-embeddest.scad b/multiswitch-embeddest.scad
new file mode 100644
index 0000000..a99261e
--- a/dev/null
+++ b/multiswitch-embeddest.scad
@@ -0,0 +1,4 @@
+use <multiswitch.scad>;
+include <pushfit_data.scad>;
+
+multiswitch(pf=pushfit_embeddest,inputs=inputs,debug=0);