# HamPack development tasks
#   make lint   - shellcheck every script
#   make test   - run the bats tests in tests/
#   make hooks  - run `make lint test` before each commit

SCRIPTS := install.sh update.sh lib.sh install-binaries.sh install-compiled.sh \
	install-flatpaks.sh install-windows-apps.sh patch-potacat.sh hampackcheck hampackremove

.PHONY: check lint test hooks

check: lint test

lint:
	shellcheck -x $(SCRIPTS)

test:
	bats tests/

hooks:
	git config core.hooksPath .githooks
