diff --git a/Makefile b/Makefile index 658650f..8ca148b 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,13 @@ container: docker build --no-cache --pull -t luzifer/dns . docker push luzifer/dns +check_zones: .venv + ./.venv/bin/python3 checkZonefile.py + +auto-hook-pre-commit: check_zones + .venv: virtualenv --python=python3 .venv ./.venv/bin/pip3 install -r requirements.txt -auto-hook-pre-commit: .venv - ./.venv/bin/python3 checkZonefile.py +.PHONY: check_zones auto-hook-pre-commit container