-rw-r--r-- | Makefile | 21 |
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 | |||
3 | OPENSCAD_APP?=/Applications/OpenSCAD.app | ||
4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD | ||
5 | OPENSCAD_FLAGS?=-D draft=false | ||
6 | |||
7 | RENDERVIEWS=holder base | ||
8 | STLS=$(addsuffix .stl,$(addprefix adapter-,${RENDERVIEWS})) | ||
9 | |||
10 | default: all | ||
11 | |||
12 | all: ${STLS} | ||
13 | clean: | ||
14 | rm -f ${STLS} | ||
15 | |||
16 | adapter-%.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 "$@" "$<" | ||