Files
args/Justfile

15 lines
371 B
Makefile

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 }}