author | Michael Krelin <hacker@klever.net> | 2017-02-04 18:00:01 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2017-02-04 18:00:01 (UTC) |
commit | 25836f14f59bdeb216a6fb189b6c4720db518c0d (patch) (unidiff) | |
tree | 7851f58079da0f0d8a893fee1f7c0a47d51cf569 /Makefile | |
download | extrudery-25836f14f59bdeb216a6fb189b6c4720db518c0d.zip extrudery-25836f14f59bdeb216a6fb189b6c4720db518c0d.tar.gz extrudery-25836f14f59bdeb216a6fb189b6c4720db518c0d.tar.bz2 |
Initial
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9444a03 --- a/dev/null +++ b/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | -include Makefile.local | ||
2 | |||
3 | OPENSCAD_APP?=/Applications/OpenSCAD.app | ||
4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD | ||
5 | OPENSCAD_FLAGS=-D draft=false | ||
6 | |||
7 | default: | ||
8 | @echo "And?" | ||
9 | |||
10 | clean: | ||
11 | rm -f *.stl *.gcode | ||
12 | |||
13 | stl-another-%: | ||
14 | $(MAKE) another-$*-{body,lever}.stl | ||
15 | |||
16 | another-%-body.stl: another-%.scad another.scad | ||
17 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" | ||
18 | another-%-lever.stl: another-%.scad another.scad | ||
19 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" | ||
20 | |||
21 | %.stl: %.scad | ||
22 | ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<" | ||