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) (side-by-side diff)
treec28fa8069a9ab856c994cd40fbcdedca43a62a21 /Makefile
parent7fdbf9d3267810cd4a92fd02bf899ae739bd2a2f (diff)
downloadcarriagery-51baec4999807653e4d80085ec541cdc60b27468.zip
carriagery-51baec4999807653e4d80085ec541cdc60b27468.tar.gz
carriagery-51baec4999807653e4d80085ec541cdc60b27468.tar.bz2
initial implementation
Diffstat (limited to 'Makefile') (more/less context) (show 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 @@
+-include Makefile.local
+
+OPENSCAD_APP?=/Applications/OpenSCAD.app
+OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD
+OPENSCAD_FLAGS?=-D draft=false
+
+RENDERVIEWS=holder base
+STLS=$(addsuffix .stl,$(addprefix adapter-,${RENDERVIEWS}))
+
+default: all
+
+all: ${STLS}
+clean:
+ rm -f ${STLS}
+
+adapter-%.stl: x-carriage-adapter.scad
+ ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -D draft=false -D 'view="$*"' -o "$@" "$<"
+
+
+%.stl: %.scad
+ ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<"