File: rules

package info (click to toggle)
libnvme 1.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,016 kB
  • sloc: ansic: 35,812; perl: 1,834; sh: 475; python: 194; cpp: 64; makefile: 55
file content (25 lines) | stat: -rwxr-xr-x 685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export KBUILD_BUILD_TIMESTAMP = "@$(SOURCE_DATE_EPOCH)"

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}
endif

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

override_dh_auto_configure:
	dh_auto_configure -- -Ddocs=man -Ddocs-build=true -Dpython=enabled -Dopenssl=enabled --default-library=both

execute_after_dh_auto_install:
	# remove empty manpages
	find debian/tmp/usr/share/man -type f -empty -exec rm -f {} +

	# fix wrong-manual-section
	sed -i -e 's| 9 | 2 |' debian/tmp/usr/share/man/*/*.2

override_dh_auto_test:
	# disabled