summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-30 16:44:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-30 16:44:52 +0000
commit1ae1ce35210e35559848b88ecd07206cdffd5f94 (patch)
treed0bfb00539f99b9026d387607ad594f507383bf3 /Makefile
parentAdding upstream version 20230625. (diff)
downloadfirmware-nonfree-upstream.tar.xz
firmware-nonfree-upstream.zip
Adding upstream version 20240709.upstream/20240709upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 27 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 50a4c29..ac43c97 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,33 @@ FIRMWAREDIR = /lib/firmware
all:
check:
- @./check_whence.py
+ @if ! command -v 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
+
+deb:
+ ./build_packages.py --deb
+
+rpm:
+ ./build_packages.py --rpm
install:
install -d $(DESTDIR)$(FIRMWAREDIR)
- ./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
+ ./copy-firmware.sh $(COPYOPTS) $(DESTDIR)$(FIRMWAREDIR)
+
+install-nodedup:
+ install -d $(DESTDIR)$(FIRMWAREDIR)
+ ./copy-firmware.sh --ignore-duplicates $(DESTDIR)$(FIRMWAREDIR)
install-xz:
install -d $(DESTDIR)$(FIRMWAREDIR)
@@ -19,3 +41,6 @@ install-xz:
install-zst:
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
+
+clean:
+ rm -rf release dist