summaryrefslogtreecommitdiffstats
path: root/case
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-25 13:36:25 -0500
committerXANTRONIX Development2023-11-25 13:36:25 -0500
commit203fdb99ede40b6d4954a4ae912042981afb6699 (patch)
tree7849506030fd787a82f22121486d2d1583005f7e /case
parent1a2199793cb2437259f8a6e68358604c93a165ad (diff)
downloadxantronix-z32-203fdb99ede40b6d4954a4ae912042981afb6699.tar.gz
xantronix-z32-203fdb99ede40b6d4954a4ae912042981afb6699.tar.bz2
xantronix-z32-203fdb99ede40b6d4954a4ae912042981afb6699.zip
Makefiles are good
Diffstat (limited to 'case')
-rw-r--r--case/Makefile22
-rw-r--r--case/outline.scad2
2 files changed, 22 insertions, 2 deletions
diff --git a/case/Makefile b/case/Makefile
new file mode 100644
index 0000000..5c63246
--- /dev/null
+++ b/case/Makefile
@@ -0,0 +1,22 @@
+SCAD_MODELS = top-keyboard.scad top-outline.scad
+SCAD_INCLUDE = params.scad
+
+STL_MODELS = top-keyboard.stl
+STL_MODEL_PARAM = top-keyboard.json
+
+OPENSCAD = /usr/bin/openscad
+
+all: $(SCAD_MODELS) $(STL_MODELS)
+
+top-keyboard.scad: SCAD_INPUT = top.scad
+top-outline.scad: SCAD_INPUT = outline.scad
+top-outline.scad: outline.scad
+
+$(SCAD_MODELS):
+ cat $(SCAD_INCLUDE) $(SCAD_INPUT) > $@
+
+$(STL_MODELS): %.stl: %.scad
+ $(OPENSCAD) $< -o $@
+
+clean:
+ $(RM) $(SCAD_MODELS) $(STL_MODELS)
diff --git a/case/outline.scad b/case/outline.scad
index 780c8d1..78fcdf8 100644
--- a/case/outline.scad
+++ b/case/outline.scad
@@ -1,7 +1,5 @@
$fn = 72;
-include <dimensions.scad>
-
translate([case_length_bottom, 0, 0])
rotate([0, 0, 90])
intersection() {