summaryrefslogtreecommitdiff
path: root/Makefile
authorMichael Krelin <hacker@klever.net>2017-02-04 18:00:01 (UTC)
committer Michael Krelin <hacker@klever.net>2017-02-04 18:00:01 (UTC)
commit25836f14f59bdeb216a6fb189b6c4720db518c0d (patch) (side-by-side diff)
tree7851f58079da0f0d8a893fee1f7c0a47d51cf569 /Makefile
downloadextrudery-25836f14f59bdeb216a6fb189b6c4720db518c0d.zip
extrudery-25836f14f59bdeb216a6fb189b6c4720db518c0d.tar.gz
extrudery-25836f14f59bdeb216a6fb189b6c4720db518c0d.tar.bz2
Initial
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile22
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 @@
+-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 "$@" "$<"