diff --git a/Justfile b/Justfile index 72023a2..87804e8 100644 --- a/Justfile +++ b/Justfile @@ -1,6 +1,14 @@ +NAME := "args" test +TESTS='test': build tests/bats/bin/bats {{ append('.bats',prepend('tests/',TESTS)) }} exec *ARGS: build build/args {{ARGS}} build: @make build + +PREFIX := if shell('id -u') == "0" { '/usr/local' } else { x'$HOME/.local' } + +install: + install -CDm0755 -t {{ PREFIX }}/bin/ build/{{ NAME }} + # install -D -t {{ PREFIX }}/share/man/1 build/{{ NAME }} +