Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #DH_VERBOSE=1
5
6 include /usr/share/dpkg/pkg-info.mk
7
8 BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
9 SPHINXOPTS := -E -N -D html_last_updated_fmt="$(BUILD_DATE)"
10
11 export PYBUILD_NAME=xdg
12
13 %:
14 dh $@ --buildsystem=pybuild
15
16 override_dh_sphinxdoc:
17 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
18 PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-pyxdg-doc/usr/share/doc/python-pyxdg-doc/html
19 dh_sphinxdoc
20 endif