From 3669f64ff6350d4b2fdca1301d20097439792561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Balv=C3=ADn?= Date: Mon, 14 Sep 2026 23:41:21 +0200 Subject: [PATCH] build: install the gasm binary into the user-local bin directory --- justfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index bf282b7..aa45bbc 100644 --- a/justfile +++ b/justfile @@ -43,16 +43,17 @@ fmt: run *ARGS: go run -ldflags "-X main.version={{version}}" ./cmd/gasm {{ARGS}} -# Install the gasm binary into $GOBIN (stamped with the release version). +# Install the gasm binary into ~/.local/bin (stamped with the release version). install-bin: - go install -ldflags "-X main.version={{version}}" ./cmd/gasm + mkdir -p "$HOME/.local/bin" + GOBIN="$HOME/.local/bin" go install -ldflags "-X main.version={{version}}" ./cmd/gasm # Regenerate the architecture instruction tables from the Go toolchain source. gen: go run _gen/gen.go gofmt -w arch/ -# Remove build artefacts. +# Remove build artefacts and the installed binaries. uninstall: - rm -f coverage.out gasm + rm -f coverage.out gasm "$HOME/.local/bin/gasm" "$HOME/go/bin/gasm" find . -name '*.test' -delete