From 08f66fbdd19a34781d5190f3d7dc2cd6455bba58 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 6 Feb 2018 23:00:17 +0100 Subject: [PATCH] Improve check call Signed-off-by: Knut Ahlers --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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