aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-11-01 17:02:58 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-11-01 17:02:58 +0100
commit1092211601c817bed81766ef3246bf52755f6331 (patch)
treeab3e218e98caa911cc72ee796b56c348d52e271a /Makefile
parent0bf33005101855c7617c47ecf66d136fea724e51 (diff)
downloadoscad_gridfinity-main.tar.gz
add dip storage binmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 874a9b8..72b28a9 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,8 @@ CASE_BASE_SIZES = $(STLDIR)/case_base_2x1.stl $(STLDIR)/case_base_2x2.stl $(STLD
$(STLDIR)/case_base_4x4.stl $(STLDIR)/case_base_4x5.stl $(STLDIR)/case_base_4x6.stl \
$(STLDIR)/case_base_5x5.stl
+DIP_SIZES = $(STLDIR)/dip_1x1.stl $(STLDIR)/dip_2x1.stl $(STLDIR)/dip_2x2.stl $(STLDIR)/dip_2x3.stl $(STLDIR)/dip_3x3.stl
+
.PHONY: _default
_default: stl
@@ -90,6 +92,15 @@ $(STLDIR)/case_base_%.stl: case_base.scad
$(STLDIR)/case_base.stl: $(CASE_BASE_SIZES)
@echo
+$(STLDIR)/dip_%.stl: dip.scad
+ @echo [ STL ] $< $*
+ @$(SCAD) $(STLOPTS) \
+ -D ux=$(firstword $(subst x, ,$*)) -D uy=$(word 2,$(subst x, ,$*)) \
+ -o $@ $<
+
+$(STLDIR)/dip.stl: $(DIP_SIZES)
+ @echo
+
# Generic Builds
$(STLDIR)/%.stl: %.scad