| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=mpi4py-fft |
| 7 |
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -q DEB_HOST_MULTIARCH) |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with python3,numpy3,sphinxdoc --buildsystem=pybuild |
| 11 |
|
| 12 |
|
| 13 |
execute_after_dh_auto_build-indep: |
| 14 |
PYTHONPATH=`pybuild --print {build_dir}` http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/source build/html # HTML generator |
| 15 |
PYTHONPATH=`pybuild --print {build_dir}` http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/source build/man # Manpage generator |
| 16 |
PYTHONPATH=`pybuild --print {build_dir}` http_proxy='127.0.0.1:9' sphinx-build -N -btexinfo docs/source build/texinfo # texinfo generator |
| 17 |
cd build/texinfo && make info |
| 18 |
sed "s|src=\"\(.*\).png\"|src=\"/usr/share/doc/python3-mpi4py-fft/html/_images/\1.png\"|g" -i build/texinfo/mpi4py-fft.info |
| 19 |
sed "s|src=\"\(.*\).svg\"|src=\"\"|g" -i build/texinfo/mpi4py-fft.info |
| 20 |
sed "s|alt=\"Documentation Status\" src=\"https://readthedocs.org/projects/mpi4py-fft/badge/?version=latest\"|alt=\"Latest Documentation\" src=\"\"|" -i build/html/*.html |
| 21 |
sed "s|src=\"https://circleci.com.*svg\"|src=\"\"|" -i build/html/*.html |
| 22 |
|
| 23 |
execute_after_dh_auto_clean: |
| 24 |
rm -f mpi4py_fft/fftw/fftwf* mpi4py_fft/fftw/fftwl* |