Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=django-sitetree
4
5 %:
6 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
7
8 override_dh_auto_build:
9 set -e; \
10 for loc in sitetree/locale/*; do \
11 python3 setup.py compile_catalog --directory sitetree/locale/ --locale $$(basename $$loc) --domain django; \
12 done
13 dh_auto_build
14
15 override_dh_sphinxdoc:
16 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
17 PYTHONPATH=. python3 -m sphinx -b html -N docs/source $(CURDIR)/debian/python-django-sitetree-doc/usr/share/doc/python-django-sitetree-doc/html
18 dh_sphinxdoc
19 endif
20
21 override_dh_installchangelogs:
22 dh_installchangelogs CHANGELOG
23
24 override_dh_clean:
25 rm -rf docs/build/html
26 rm -rf docs/build/.doctrees
27 rm -rf .cache
28 dh_clean