From 51baec4999807653e4d80085ec541cdc60b27468 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 15 Jul 2016 12:42:42 +0000 Subject: initial implementation --- (limited to 'Makefile') 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 "$@" "$<" -- cgit v0.9.0.2