| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
SPHINXBUILD="/usr/share/sphinx/scripts/python3/sphinx-build" |
| 6 |
|
| 7 |
|
| 8 |
export READTHEDOCS=True |
| 9 |
|
| 10 |
export TRAVIS_CI=False |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --buildsystem=pybuild |
| 14 |
|
| 15 |
execute_after_dh_auto_clean: |
| 16 |
$(MAKE) distclean |
| 17 |
rm -rf html |
| 18 |
|
| 19 |
execute_after_dh_auto_build: |
| 20 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 21 |
|
| 22 |
ln -s /usr/share/nodejs/mathjax-full \ |
| 23 |
documentation/source/_static/mathjax-full |
| 24 |
env PYTHONPATH=$(shell pybuild --print {build_dir} --interpreter python3) BREATHE_GIT_TAG=v$(DEB_VERSION_UPSTREAM) \ |
| 25 |
$(MAKE) html SPHINXBUILD=$(SPHINXBUILD) DOXYGEN=/usr/bin/doxygen SPHINXOPTS="-v -E" |
| 26 |
mv documentation/build/html html |
| 27 |
|
| 28 |
sed -i -e 's@$(CURDIR)/@@g' html/*.html |
| 29 |
endif |
| 30 |
|
| 31 |
override_dh_auto_test: |
| 32 |
documention |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
override_dh_installdocs: |
| 37 |
|
| 38 |
dh_installdocs -X_static/mathjax-full |
| 39 |
|
| 40 |
override_dh_sphinxdoc: |
| 41 |
dh_linkdh_sphinxdoc |
| 42 |
|
| 43 |
dh_sphinxdoc -Xtex-mml-chtml.js |