| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=mako |
| 7 |
export PYBUILD_BEFORE_TEST=cp setup.cfg {build_dir} |
| 8 |
export PYBUILD_AFTER_TEST=rm {build_dir}/setup.cfg |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --with=sphinxdoc,python3 --buildsystem=pybuild |
| 12 |
|
| 13 |
override_dh_sphinxdoc: |
| 14 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 15 |
PYTHONPATH=. python3 -m sphinx -b html -N doc/build $(CURDIR)/debian/python-mako-doc/usr/share/doc/python-mako-doc/html |
| 16 |
dh_sphinxdoc |
| 17 |
endif |
| 18 |
|
| 19 |
override_dh_install: |
| 20 |
dh_install |
| 21 |
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) |
| 22 |
mv $(CURDIR)/debian/python-mako-doc/usr/share/vim/addons/indent/mako_indent.vim \ |
| 23 |
$(CURDIR)/debian/python-mako-doc/usr/share/vim/addons/indent/mako.vim |
| 24 |
endif |
| 25 |
|
| 26 |
override_dh_installchangelogs: |
| 27 |
dh_installchangelogs -i doc/build/changelog.rst |