File: rules

package info (click to toggle)
mako 1.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,436 kB
  • sloc: python: 12,482; makefile: 129; sh: 17
file content (27 lines) | stat: -rwxr-xr-x 791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE = 1

export PYBUILD_NAME=mako
export PYBUILD_BEFORE_TEST=cp setup.cfg {build_dir}
export PYBUILD_AFTER_TEST=rm {build_dir}/setup.cfg

%:
	dh $@ --with=sphinxdoc,python3 --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N doc/build $(CURDIR)/debian/python-mako-doc/usr/share/doc/python-mako-doc/html
	dh_sphinxdoc
endif

override_dh_install:
	dh_install
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
	mv $(CURDIR)/debian/python-mako-doc/usr/share/vim/addons/indent/mako_indent.vim \
	   $(CURDIR)/debian/python-mako-doc/usr/share/vim/addons/indent/mako.vim
endif

override_dh_installchangelogs:
	dh_installchangelogs -i doc/build/changelog.rst