summaryrefslogtreecommitdiff
path: root/Makefile
Unidiff
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d04b0c3
--- a/dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
1-include Makefile.local
2
3OPENSCAD_APP?=/Applications/OpenSCAD.app
4OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD
5OPENSCAD_FLAGS?=-D draft=false
6
7RENDERVIEWS=holder base
8STLS=$(addsuffix .stl,$(addprefix adapter-,${RENDERVIEWS}))
9
10default: all
11
12all: ${STLS}
13clean:
14 rm -f ${STLS}
15
16adapter-%.stl: x-carriage-adapter.scad
17 ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -D draft=false -D 'view="$*"' -o "$@" "$<"
18
19
20%.stl: %.scad
21 ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<"