2012-05-21 22:37:20 +00:00
|
|
|
# This file implements the GNOME Build API:
|
|
|
|
# http://people.gnome.org/~walters/docs/build-api.txt
|
|
|
|
|
|
|
|
FIRMWAREDIR = /lib/firmware
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
2016-09-18 00:44:04 +00:00
|
|
|
check:
|
2023-08-15 17:52:13 +00:00
|
|
|
@if ! which pre-commit >/dev/null; then \
|
|
|
|
echo "Install pre-commit to check files"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
@pre-commit run --all-files
|
2016-09-18 00:44:04 +00:00
|
|
|
|
2023-08-31 03:50:40 +00:00
|
|
|
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
|
|
|
|
|
2023-09-18 21:15:35 +00:00
|
|
|
deb:
|
|
|
|
./build_packages.py --deb
|
|
|
|
|
|
|
|
rpm:
|
|
|
|
./build_packages.py --rpm
|
|
|
|
|
2012-05-21 22:37:20 +00:00
|
|
|
install:
|
2022-05-09 10:25:02 +00:00
|
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
2019-07-31 16:17:44 +00:00
|
|
|
./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
|
2023-06-05 13:58:12 +00:00
|
|
|
|
|
|
|
install-xz:
|
|
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
|
|
./copy-firmware.sh --xz $(DESTDIR)$(FIRMWAREDIR)
|
|
|
|
|
|
|
|
install-zst:
|
|
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
|
|
./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
|
2023-08-31 03:50:40 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf release dist
|