Wire up pre-commit to `make check`

This will let `make check` cover more things than just `WHENCE`.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
Mario Limonciello 2023-08-15 12:52:13 -05:00
parent c442a5002c
commit 5e2367f8ea
1 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,11 @@ FIRMWAREDIR = /lib/firmware
all: all:
check: 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:
install -d $(DESTDIR)$(FIRMWAREDIR) install -d $(DESTDIR)$(FIRMWAREDIR)