aboutsummaryrefslogtreecommitdiffstats
path: root/web/install.sh
diff options
context:
space:
mode:
authorPeter Geissler <peter@haxx.in>2026-08-26 23:29:04 +0200
committerPeter Geissler <peter@haxx.in>2026-08-26 23:30:58 +0200
commitcbc8d8ac3ce19576045a06ca8142ebdc3f331ff7 (patch)
treec6421512edb7b1fa75b05602053616924b294c9c /web/install.sh
parentcleanup: remove pointless md artifacts (diff)
downloadslosh-cbc8d8ac3ce19576045a06ca8142ebdc3f331ff7.tar.gz
slosh-cbc8d8ac3ce19576045a06ca8142ebdc3f331ff7.tar.xz
slosh-cbc8d8ac3ce19576045a06ca8142ebdc3f331ff7.zip
install.sh: `make` prints the help text, it does not build
The default goal is `help`, so the installer's bare `make` printed a cheerful list of targets, exited 0, and installed whatever build/slosh happened to be lying around -- or failed at the copy on a clean tree. Name the target.
Diffstat (limited to 'web/install.sh')
-rwxr-xr-xweb/install.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/web/install.sh b/web/install.sh
index f2b8c97..126bd07 100755
--- a/web/install.sh
+++ b/web/install.sh
@@ -1,6 +1,11 @@
#!/bin/sh
# slosh installer -- https://slosh.foo
#
+# On macOS or Linux with Homebrew there is a shorter road:
+#
+# brew tap sl0p/slosh https://git.sl0p.foo/homebrew-slosh.git
+# brew install slosh
+#
# You are reading this before running it, which is correct. What it does:
#
# 1. checks for zig 0.16 and git,
@@ -45,9 +50,11 @@ trap 'rm -rf "$tmp"' EXIT INT TERM
say "cloning $REPO"
git clone --quiet --depth 1 "$REPO" "$tmp/slosh"
-say "building (make vendor, once; then make)"
+say "building (make vendor, once; then make all)"
make -C "$tmp/slosh" ZIG="$ZIG" vendor
-make -C "$tmp/slosh" ZIG="$ZIG"
+# `all`, spelled out: the default goal is the help text, so a bare `make` here
+# would print it cheerfully and install whatever build/slosh happened to exist.
+make -C "$tmp/slosh" ZIG="$ZIG" all
say "installing to $PREFIX/bin/slosh"
install -d "$PREFIX/bin"