Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 SPHINXBUILD="/usr/share/sphinx/scripts/python3/sphinx-build"
6
7 # Build documentation for readthedocs
8 export READTHEDOCS=True
9 # Do not build for Travis
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 # Link mathjax in _static
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 # Hotfix for build path in documentation
28 sed -i -e 's@$(CURDIR)/@@g' html/*.html
29 endif
30
31 override_dh_auto_test:
32 # We test breathe by building the documention. The documentation has already
33 # been built for the default Python 3 version, so we do not need to do this
34 # again.
35
36 override_dh_installdocs:
37 # Do not copy mathjax to the binary package
38 dh_installdocs -X_static/mathjax-full
39
40 override_dh_sphinxdoc:
41 # dh_link creates the link for mathjax after dh_sphinxdoc, so ignore
42 # tex-mml-chtml.js
43 dh_sphinxdoc -Xtex-mml-chtml.js