27 lines
443 B
Makefile
27 lines
443 B
Makefile
alias fmt := format
|
|
alias fmtw := format-write
|
|
|
|
tags:
|
|
ctags -R .
|
|
|
|
dev:
|
|
./mkdev.sh
|
|
|
|
test: dev
|
|
bash ./test.sh
|
|
zsh ./test.sh
|
|
|
|
format: dev tags
|
|
git ls-files -z "*.sh" | xargs -0 shfmt -d
|
|
vendor/stdlib/scripts/check-tags.sh ./tags
|
|
|
|
format-write:
|
|
git ls-files -z "*.sh" | xargs -0 shfmt -w
|
|
|
|
check:
|
|
codespell
|
|
git ls-files -z "*.sh" | xargs -0 shellcheck
|
|
! rg -i "# (FIXME|TODO)"
|
|
|
|
pre-commit: format check test
|