File: rules

package info (click to toggle)
mpi4py-fft 2.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 672 kB
  • sloc: python: 2,945; ansic: 87; makefile: 45; sh: 34
file content (27 lines) | stat: -rwxr-xr-x 1,573 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=mpi4py-fft
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -q DEB_HOST_MULTIARCH)

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


override_dh_auto_build-indep:
	dh_auto_build
	PYTHONPATH=`pybuild --print {build_dir}` http_proxy='127.0.0.1:9' sphinx-build -N -bhtml       docs/source build/html # HTML generator
	PYTHONPATH=`pybuild --print {build_dir}` http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/source build/man # Manpage generator
	PYTHONPATH=`pybuild --print {build_dir}` http_proxy='127.0.0.1:9' sphinx-build -N -btexinfo    docs/source build/texinfo # texinfo generator
	cd build/texinfo && make info
	sed "s|src=\"\(.*\).png\"|src=\"/usr/share/doc/python3-mpi4py-fft/html/_images/\1.png\"|g" -i build/texinfo/mpi4py-fft.info
	sed "s|src=\"\(.*\).svg\"|src=\"\"|g" -i build/texinfo/mpi4py-fft.info
	sed "s|alt=\"Documentation Status\" src=\"https://readthedocs.org/projects/mpi4py-fft/badge/?version=latest\"|alt=\"Latest Documentation\" src=\"\"|" -i build/html/*.html
	sed "s|src=\"https://circleci.com.*svg\"|src=\"\"|" -i build/html/*.html
	grep "cdnjs.cloudflare.com/ajax/libs/mathjax" build/html/* -R --files-with-matches | xargs sed "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/[Mm]ath[Jj]ax.js|src=\"/usr/share/javascript/mathjax/MathJax.js|g" -i

override_dh_auto_clean:
	dh_auto_clean
	rm -f mpi4py_fft/fftw/fftwf* mpi4py_fft/fftw/fftwl*