diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-04-16 22:06:59 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-04-16 22:06:59 +0200 |
commit | c0f911077ee4bbe34eaa825cb2a17e23e4f4c50d (patch) | |
tree | 1d7592842835ce7f5a1ae214c2a5c400ee945eeb | |
parent | 9245de565182581438f854426575efdfa0e0be70 (diff) |
Makefile to build .stl files from .scad ones
-rw-r--r-- | Makefile | 13 |
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 $@ $^ |