From 8fc51019c379755888a95b7a5a706aa6e4389145 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 24 Aug 2023 23:23:41 -0500 Subject: [PATCH] really simple Makefile to compile the STLs --- .gitignore | 2 ++ Makefile | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 1ee84da..55a1709 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +build/ + *.sw* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c23d1b8 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +SRCDIR = ./src +all: $(SRCDIR)/* + mkdir -p build + for file in $^ ; do \ + openscad -o $${file}.stl $${file} ; \ + mv $${file}.stl build ; \ + done + +clean: + rm build/*.stl + rmdir build