diff --git a/justfile b/justfile index d8198ca..ba2866d 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,6 @@ builddir := "./build" +prefix := env_var_or_default("PREFIX", "/usr/local") +bindir := prefix + "/bin" default: just --list @@ -31,3 +33,6 @@ build-release tag version os arch: tar czf yr-{{version}}-{{os}}-{{arch}}.tar.gz yr-{{version}} hut git artifact upload --rev {{tag}} yr-{{version}}-{{os}}-{{arch}}.tar.gz + +install: build + install -m 0755 {{builddir}}/yr {{bindir}}