Update Makefile
parent
995bcb9a96
commit
c63b68cfa7
17
Makefile
17
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue