Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE = 1
5
6 SPHINXOPTS := -E -N
7
8 export PYBUILD_NAME=autodocsumm
9 export PYBUILD_BEFORE_TEST=cp conftest.py {build_dir}
10 export PYBUILD_AFTER_TEST=rm {build_dir}/conftest.py
11
12 %:
13 dh $@ --buildsystem=pybuild
14
15 override_dh_clean:
16 rm -rf .mypy_cache .pytest_cache
17 dh_clean
18
19 override_dh_sphinxdoc:
20 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
21 PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "$(PYBUILD_NAME )*dist-info" | head -n1)` \
22 python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html
23 dh_sphinxdoc
24 endif