Update Makefile

alpha
inference 2023-09-06 14:31:31 +01:00
parent 995bcb9a96
commit c63b68cfa7
Signed by: inference
SSH Key Fingerprint: SHA256:FtEVfx1CmTKMy40VwZvF4k+3TC+QhCWy+EmPRg50Nnc
1 changed files with 16 additions and 1 deletions

View File

@ -6,7 +6,19 @@ 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
dist:
@mkdir -p release dist
./copy-firmware.sh release
@TARGET=linux-firmware_`git describe`.tar.gz; \
cd release && tar -czf ../dist/$${TARGET} *; \
echo "Created dist/$${TARGET}"
@rm -rf release
install:
install -d $(DESTDIR)$(FIRMWAREDIR)
@ -19,3 +31,6 @@ install-xz:
install-zst:
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
clean:
rm -rf release dist