aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-01-17 17:15:01 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-01-17 17:15:01 +0100
commitaf824c845503f4c2e8614c5acf907e9f41789d74 (patch)
tree4564ba0de0cd19d8ece510deaee376c2f9adf7e9
parent01eb7b4ec3a6675f50e60ad4609e6fed579f5c54 (diff)
downloadoscad_gridfinity-af824c845503f4c2e8614c5acf907e9f41789d74.tar.gz
add targets for case_base sizes
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3e670d3..60fb821 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,14 @@ SIMPLEBOX_SIZES = $(STLDIR)/simplebox_1x1x4.stl $(STLDIR)/simplebox_2x1x4.stl $(
$(STLDIR)/simplebox_3x1x4.stl $(STLDIR)/simplebox_3x1x3.stl $(STLDIR)/simplebox_2x2x4.stl \
$(STLDIR)/simplebox_2x2x4.stl
+CASE_CLIP_SIZES = $(STLDIR)/case_clip_2.stl $(STLDIR)/case_clip_3.stl $(STLDIR)/case_clip_4.stl $(STLDIR)/case_clip_5.stl \
+ $(STLDIR)/case_clip_6.stl $(STLDIR)/case_clip_7.stl $(STLDIR)/case_clip_8.stl $(STLDIR)/case_clip_9.stl \
+ $(STLDIR)/case_clip_10.stl
+
+CASE_BASE_SIZES = $(STLDIR)/case_base_2x1.stl $(STLDIR)/case_base_2x2.stl $(STLDIR)/case_base_2x3.stl $(STLDIR)/case_base_2x4.stl \
+ $(STLDIR)/case_base_3x3.stl $(STLDIR)/case_base_3x4.stl $(STLDIR)/case_base_3x5.stl $(STLDIR)/case_base_3x6.stl \
+ $(STLDIR)/case_base_4x4.stl $(STLDIR)/case_base_4x5.stl $(STLDIR)/case_base_4x6.stl \
+ $(STLDIR)/case_base_5x5.stl
.PHONY: _default
_default: stl
@@ -29,6 +37,8 @@ all: clean stl png
.PHONY: stl
stl: $(STLDIR) $(STL)
+# Project specific config
+
$(STLDIR)/gridfinity.stl: gridfinity.scad
@echo
@@ -53,6 +63,26 @@ $(STLDIR)/simplebox_%.stl: simplebox.scad
$(STLDIR)/simplebox.stl: $(SIMPLEBOX_SIZES)
@echo
+$(STLDIR)/case_clip_%.stl: case_clip.scad
+ @echo [ STL ] $< $*
+ @$(SCAD) $(STLOPTS) \
+ -D height=$* \
+ -o $@ $<
+
+$(STLDIR)/case_clip.stl: $(CASE_CLIP_SIZES)
+ @echo
+
+$(STLDIR)/case_base_%.stl: case_base.scad
+ @echo [ STL ] $< $*
+ @$(SCAD) $(STLOPTS) \
+ -D ux=$(firstword $(subst x, ,$*)) -D uy=$(word 2,$(subst x, ,$*)) \
+ -o $@ $<
+
+$(STLDIR)/case_base.stl: $(CASE_BASE_SIZES)
+ @echo
+
+# Generic Builds
+
$(STLDIR)/%.stl: %.scad
@echo [ STL ] $<
@$(SCAD) $(STLOPTS) -o $@ $<