From 5017dc589cfc0f4102ac12b001a50cb6d3f143d2 Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Sun, 14 May 2023 00:09:22 +0200 Subject: [PATCH] add makefile --- .gitignore | 3 +++ Makefile | 7 +++++++ README.md | 6 +++++- lower_case.scad | 2 ++ plate.scad | 2 ++ util.scad | 2 ++ 6 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 81c90ed..db119cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +*.stl +*.3mf + # Created by https://www.toptal.com/developers/gitignore/api/linux,windows,macos,vim # Edit at https://www.toptal.com/developers/gitignore?templates=linux,windows,macos,vim diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c5882a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: render + +render: + openscad --export-format binstl -o lower_case.stl lower_case.scad + openscad --export-format 3mf -o lower_case.3mf lower_case.scad + openscad --export-format binstl -o plate.stl plate.scad + openscad --export-format 3mf -o plate.3mf plate.scad diff --git a/README.md b/README.md index a04e324..7b79017 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ CAD files for noisy cricket =========================== -case and plate +Create lower case and plate files by running: + +```shell +make render +``` --- diff --git a/lower_case.scad b/lower_case.scad index 2ad5dfe..37e30a5 100644 --- a/lower_case.scad +++ b/lower_case.scad @@ -1,3 +1,5 @@ +// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + include $fn = 64; diff --git a/plate.scad b/plate.scad index 9c08aa6..cd62ab6 100644 --- a/plate.scad +++ b/plate.scad @@ -1,3 +1,5 @@ +// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + include $fn = 64; diff --git a/util.scad b/util.scad index 7f14e01..b865dcf 100644 --- a/util.scad +++ b/util.scad @@ -1,3 +1,5 @@ +// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + pcb_width = 139.7; pcb_depth = 82.55; pcb_radius = 3.175;