From 5e2367f8ea5e91d68d564d721c57e8aa0d5c7d9e Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 15 Aug 2023 12:52:13 -0500 Subject: [PATCH] Wire up pre-commit to `make check` This will let `make check` cover more things than just `WHENCE`. Signed-off-by: Mario Limonciello --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)