From 8b990670f752851d4a5047fbe5db0c64fb734924 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 8 Aug 2026 13:52:25 +0200 Subject: Start a new repository --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0b2c150 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ + +BUILDDIR = build +SRCDIR = src + +VPATH = $(SRCDIR):$(BUILDDIR) + +STL_TARGETS = $(patsubst $(SRCDIR)/%.scad,$(BUILDDIR)/%.stl,$(wildcard $(SRCDIR)/*.scad)) +GCODE_TARGETS = $(patsubst $(SRCDIR)/%.scad,$(BUILDDIR)/%.gcode,$(wildcard $(SRCDIR)/*.scad)) + +.PHONY: all clean +all: $(STL_TARGETS) + +$(BUILDDIR)/%.stl: %.scad $(SRCDIR)/lib/ + mkdir -p ${BUILDDIR} + openscad -o $@ $< + +clean: + rm -f ${BUILDDIR}/*.stl + -- cgit v1.2.3