summaryrefslogtreecommitdiff
path: root/Makefile
authorMichael Krelin <hacker@klever.net>2016-07-15 12:42:42 (UTC)
committer Michael Krelin <hacker@klever.net>2016-07-15 12:42:42 (UTC)
commit51baec4999807653e4d80085ec541cdc60b27468 (patch) (unidiff)
treec28fa8069a9ab856c994cd40fbcdedca43a62a21 /Makefile
parent7fdbf9d3267810cd4a92fd02bf899ae739bd2a2f (diff)
downloadcarriagery-51baec4999807653e4d80085ec541cdc60b27468.zip
carriagery-51baec4999807653e4d80085ec541cdc60b27468.tar.gz
carriagery-51baec4999807653e4d80085ec541cdc60b27468.tar.bz2
initial implementation
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 "$@" "$<"