Skip to content

Commit 8fc5101

Browse files
committed
really simple Makefile to compile the STLs
1 parent f7fa46a commit 8fc5101

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
build/
2+
13
*.sw*

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SRCDIR = ./src
2+
all: $(SRCDIR)/*
3+
mkdir -p build
4+
for file in $^ ; do \
5+
openscad -o $${file}.stl $${file} ; \
6+
mv $${file}.stl build ; \
7+
done
8+
9+
clean:
10+
rm build/*.stl
11+
rmdir build

0 commit comments

Comments
 (0)