From c0f911077ee4bbe34eaa825cb2a17e23e4f4c50d Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 16 Apr 2014 22:06:59 +0200 Subject: Makefile to build .stl files from .scad ones --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 $@ $^ -- cgit v1.2.3