summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2d2a5de525e0b24c440ea3bd1a7ebb7369d083c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-include Makefile.local

OPENSCAD_APP?=/Applications/OpenSCAD.app
OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD
OPENSCAD_FLAGS?=-D draft=false -D print=true

RENDERVIEWS=holder base
STLS=$(addsuffix .stl,$(addprefix adapter-,${RENDERVIEWS}) x-carriage)

default: all

all: ${STLS}
clean:
	rm -f ${STLS}

adapter-%.stl: x-carriage-adapter.scad
	${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -D 'view="$*"' -o "$@" "$<"


%.stl: %.scad
	${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<"