aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2026-07-18 17:20:05 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2026-07-18 17:20:05 +0200
commita43beb15df42f5558e5e7b541e1a73238f151eb5 (patch)
treec79dfab264e2c713c3a21e824240667f6bfec5f2
parentf37fb145746093a55998e557030f7f067d9e3265 (diff)
Rebuild models when lib changes
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2731947..7563df1 100644
--- a/Makefile
+++ b/Makefile
@@ -15,12 +15,12 @@ all: $(STL_TARGETS)
gcode: $(GCODE_TARGETS)
-$(BUILDDIR)/%.stl: %.scad
+$(BUILDDIR)/%.stl: %.scad lib/
mkdir -p ${BUILDDIR}
- openscad -o $@ $^
+ openscad -o $@ $<
$(BUILDDIR)/%.gcode: %.stl
- ${SLIC3R} --load ${CONFDIR}/dice.ini $^
+ ${SLIC3R} --load ${CONFDIR}/dice.ini $<
clean:
rm -f ${BUILDDIR}/*.stl ${BUILDDIR}/*.gcode