linux-firmware/debian-firmware/debian/rules

33 lines
723 B
Plaintext
Raw Normal View History

2023-02-23 21:02:13 +01:00
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
dest_dir = $(CURDIR)/debian/linux-firmware
firmware_dir = $(dest_dir)/lib/firmware
license_dir = $(dest_dir)/usr/share/doc/linux-firmware/licenses
%:
dh $@
override_dh_install:
dh_install
# Everything is installed, so remove unwanted firmware and licences
# and check for any dangling symlinks
debian/scripts/remove-firmware $(firmware_dir)
debian/scripts/remove-firmware $(license_dir)
debian/scripts/check-symlinks $(dest_dir)
override_dh_clean:
dh_clean
# Run sanity checks if in a git repo
if [ -d .git ] ; then \
$(MAKE) check ; \
fi
override_dh_auto_build:
override_dh_auto_test:
override_dh_strip_nondeterminism: