File: rules

package info (click to toggle)
yubikey-manager 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 888 kB
  • sloc: python: 9,918; makefile: 19; sh: 18
file content (30 lines) | stat: -rwxr-xr-x 742 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
26
27
28
29
30
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_installchangelogs:
	dh_installchangelogs NEWS

# Nasty hack to autogenerate a manpage
# This can be entirely replaced by click-man once it is packaged (see #924099)
VENV:=$(shell mktemp -d)
override_dh_installman:
	python3 -m venv --system-site-packages $(VENV)
	$(VENV)/bin/python setup.py build
	$(VENV)/bin/python setup.py install

	help2man -o debian/ykman.1 \
		--no-info --version-string=$(DEB_VERSION_UPSTREAM) \
		--name 'YubiKey Manager' --locale=C.UTF-8 -- $(VENV)/bin/ykman
	rm -rf $(VENV)

	dh_installman

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_missing:
	dh_missing --fail-missing