File: rules

package info (click to toggle)
python-qmix 1.0.6-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,460 kB
  • sloc: python: 4,312; makefile: 215
file content (16 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_NAME=qmix
export PYBUILD_AFTER_BUILD=cp -r tests/exp-data {build_dir}/tests

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

override_dh_installdocs:
	https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' sphinx-build -b html docs/source build/sphinx/html

	# Replace .js files in the package with local URLs
	find build/sphinx/html -type f -name '*.html' -exec sed -i 's|src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"|src="/usr/share/javascript/requirejs/require.min.js"|g' {} +

	dh_installdocs -ppython-qmix-doc --doc-main-package=python-qmix-doc build/sphinx/html
	dh_installdocs