| 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=periodictable |
| 7 |
|
| 8 |
export PYBUILD_TEST_ARGS=test doc/sphinx/guide periodictable |
| 9 |
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/api' |
| 10 |
export MPLBACKEND=Agg |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 14 |
|
| 15 |
override_dh_auto_clean: |
| 16 |
dh_auto_clean |
| 17 |
rm -rf .mplconfig api .cache |
| 18 |
|
| 19 |
override_dh_auto_build: |
| 20 |
dh_auto_build |
| 21 |
PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml doc/sphinx build/html # HTML generator |
| 22 |
PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -btexinfo doc/sphinx build/texinfo # Info generator |
| 23 |
ln -sf /usr/share/javascript/mathjax/ build/html/_static/mathjax |
| 24 |
|
| 25 |
override_dh_installinfo: |
| 26 |
cd build/texinfo; \ |
| 27 |
makeinfo $(PYBUILD_NAME).texi |
| 28 |
dh_installinfo |
| 29 |
|
| 30 |
override_dh_installdocs: |
| 31 |
cp doc/README.txt doc/nsf-README.txt |
| 32 |
dh_installdocs |
| 33 |
rm doc/nsf-README.txt |