cc-libs/Justfile
2026-05-31 02:48:19 +02:00

21 lines
496 B
Makefile

# Justfile for cc-libs
# Run `just check` to lint all Lua code with luacheck.
# List available recipes.
default:
@just --list
# Install local development tooling.
install: install-git-hooks
# Install Git hooks for this repository.
install-git-hooks:
@mkdir -p .git/hooks
@printf '%s\n' '#!/bin/sh' '' 'just check' > .git/hooks/pre-push
@chmod +x .git/hooks/pre-push
@printf '%s\n' 'Installed .git/hooks/pre-push'
# Lint all Lua source with luacheck.
check:
luacheck .