File: rules

package info (click to toggle)
python-multipletau 0.4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 1,485; makefile: 17
file content (28 lines) | stat: -rwxr-xr-x 737 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

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

export PYBUILD_NAME=multipletau
export PYBUILD_TEST_PYTEST=1
export LC_ALL=C.UTF-8
export SETUPTOOLS_SCM_PRETEND_VERSION=${DEB_VERSION_UPSTREAM}

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html
	# see d/patches/packaged-mathjax.path
	# Link mathjax in _static
	ln -s /usr/share/javascript/mathjax \
		build/html/_static/mathjax

override_dh_installdocs:
	dh_installdocs -ppython-multipletau-doc build/html
	dh_installdocs -A

override_dh_sphinxdoc:
	# dh_link creates the link for mathjax after dh_sphinxdoc, so ignore
	# MathJax.js
	dh_sphinxdoc -XMathJax.js