diff --git a/Makefile b/Makefile index 50a4c29b..75039ccb 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,11 @@ FIRMWAREDIR = /lib/firmware all: check: - @./check_whence.py + @if ! which pre-commit >/dev/null; then \ + echo "Install pre-commit to check files"; \ + exit 1; \ + fi + @pre-commit run --all-files install: install -d $(DESTDIR)$(FIRMWAREDIR)