aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2014-04-16 22:06:59 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2014-04-16 22:06:59 +0200
commitc0f911077ee4bbe34eaa825cb2a17e23e4f4c50d (patch)
tree1d7592842835ce7f5a1ae214c2a5c400ee945eeb
parent9245de565182581438f854426575efdfa0e0be70 (diff)
Makefile to build .stl files from .scad ones
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..15dbb0c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+
+BUILDDIR=build
+SRCDIR=parts
+
+VPATH = $(SRCDIR)
+
+STL_TARGETS = $(patsubst $(SRCDIR)/%.scad,$(BUILDDIR)/%.stl,$(wildcard $(SRCDIR)/*.scad))
+
+all: $(STL_TARGETS)
+
+$(BUILDDIR)/%.stl: %.scad
+ mkdir -p ${BUILDDIR}
+ openscad -o $@ $^