]> git.proxmox.com Git - mirror_linux-firmware.git/commitdiff
Wire up pre-commit to `make check`
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 15 Aug 2023 17:52:13 +0000 (12:52 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 30 Aug 2023 01:51:24 +0000 (20:51 -0500)
This will let `make check` cover more things than just `WHENCE`.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Makefile

index 50a4c29be5b4fbb17114f2a0dc4f427104a176b3..75039ccb4ce1c931dfc7c8a2e50a6e8270d96bc2 100644 (file)
--- 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)