From 7745ef061a72f3784b3f269cb00d66a7713a641e Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 21 Dec 2023 03:57:54 +0000 Subject: [PATCH] add a Makefile to automate STL building --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89e28a6 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +PREFIX=/usr +SHAREDIR=$(PREFIX)/share/models + +all: case.stl + +%.stl: %.scad + openscad $^ -o $@ + +install: + mkdir -p $(SHAREDIR) + install -m644 case.stl $(SHAREDIR) + +.PHONY: all install