summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: a28eafe6e0d61b35098715200ce7ade8df779ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

%:
	dh ${@} --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- -Ddocs=man -Ddocs-build=true -Dsystemddir=/lib/systemd -Dudevrulesdir=/lib/udev

execute_after_dh_auto_install:
	# temporarily building without udeb
	rm -rf debian/nvme-cli
	mv debian/tmp debian/nvme-cli

	# removing unused files
	rm -rf debian/nvme-cli/usr/lib/dracut

	# fix wrong-manual-section
	sed -i -e 's|\\" "1"|" "1"|' debian/nvme-cli/usr/share/man/*/*.1

override_dh_auto_test:
	# disabled, requires a NVMe device