blob: 9444a03fe6251ee4f804627b63fc19fbbda83e46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
-include Makefile.local
OPENSCAD_APP?=/Applications/OpenSCAD.app
OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD
OPENSCAD_FLAGS=-D draft=false
default:
@echo "And?"
clean:
rm -f *.stl *.gcode
stl-another-%:
$(MAKE) another-$*-{body,lever}.stl
another-%-body.stl: another-%.scad another.scad
$(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<"
another-%-lever.stl: another-%.scad another.scad
$(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<"
%.stl: %.scad
${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<"
|