summaryrefslogtreecommitdiff
path: root/Makefile
blob: d04b0c3904348dee299a70ea7f13552fde207d5e (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

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