diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2026-08-08 13:52:25 +0200 |
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2026-08-08 13:52:25 +0200 |
| commit | 8b990670f752851d4a5047fbe5db0c64fb734924 (patch) | |
| tree | 9f762685812a00b1fc3b53755fa77a83c0bcf2b4 /Makefile | |
Start a new repository
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
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 + |
