File: rules

package info (click to toggle)
natsort 8.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: python: 4,891; makefile: 17; sh: 4
file content (28 lines) | stat: -rwxr-xr-x 858 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

export PYBUILD_NAME=$(DEB_SOURCE)

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

execute_after_dh_auto_clean:
	rm -f debian/natsort.1
	rm -f debian/upstream.changelog
	rm -rf docs/_build

override_dh_installchangelogs:
	cat README.rst | grep -A 10000 History > debian/upstream.changelog
	dh_installchangelogs debian/upstream.changelog

execute_after_dh_auto_install:
	rm -rf debian/python-natsort/usr/bin
	PYTHONPATH=$(CURDIR) help2man --version-string="$(DEB_VERSION_UPSTREAM)" -n "Natural sorting for shell" debian/python3-natsort/usr/bin/natsort > debian/natsort.1
	set -ex; \
		cd docs; \
		python3 -m sphinx -C -b html -Dmaster_doc=index -Dmathjax_path=/usr/share/javascript/mathjax/MathJax.js . _build/html;