-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 @@ +-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 "$@" "$<" |