aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-19 20:15:54 +0200
committeruser <user@clank>2026-08-19 20:15:54 +0200
commita60ff3235df75b0ba13891528edd29003ac52243 (patch)
tree2a502b3d38caa56e6f6d65c8a1a10f62320ae731 /web
parentslosh: the website lives in web/ -- one directory, one build, make www (diff)
downloadslosh-a60ff3235df75b0ba13891528edd29003ac52243.tar.gz
slosh-a60ff3235df75b0ba13891528edd29003ac52243.tar.xz
slosh-a60ff3235df75b0ba13891528edd29003ac52243.zip
webdemo: the theme symlink is a dependency of the image
$(shell find overlay -type f) skips symlinks, and the one symlink in overlay/ is the sl0p theme pointing into contrib/themes -- the file the README promises cannot drift was the one file whose edit did not rebuild the rootfs. find -L includes it, and make stats prereqs through symlinks, so the target's mtime is the one compared. Found while tracing what a src/app.c edit does under make www: that path was already correct (depfile -> object -> guest -> image -> site).
Diffstat (limited to 'web')
-rw-r--r--web/demo/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/demo/Makefile b/web/demo/Makefile
index 2272c46..06d1f5b 100644
--- a/web/demo/Makefile
+++ b/web/demo/Makefile
@@ -128,7 +128,11 @@ guest: $(GUEST) ## cross-compile slosh for riscv64
# the image they use, not all of it.
rootfs: $(IMAGE) ## build and split the guest filesystem
-$(IMAGE): $(GUEST) build-rootfs vendor/.stamp $(shell find overlay -type f 2>/dev/null)
+# find -L: overlay contains a symlink (the theme, pointing into contrib/themes)
+# and -type f without -L skips symlinks -- editing the theme would not rebuild
+# the image. With -L the prereq is the symlink path, and make stats through it,
+# so the target's mtime is the one compared.
+$(IMAGE): $(GUEST) build-rootfs vendor/.stamp $(shell find -L overlay -type f 2>/dev/null)
$(Q)./build-rootfs --base vendor/alpine-minirootfs-riscv64.tar.gz --slosh $(GUEST) \
--apks vendor/apks --overlay overlay --out $@ --split $(SITE)/rootfs --size $(IMAGE_MB)M