File: rules

package info (click to toggle)
flufl.i18n 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: python: 494; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_NAME=flufl.i18n
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/flufl/i18n/README.rst' \
	'{destdir}/{install_dir}/flufl/i18n/NEWS.rst' \
	'{destdir}/{install_dir}/flufl/i18n/docs'
DEFAULT_PYVER=$(shell py3versions -d -v)

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

execute_after_dh_auto_build:
	# Run Sphinx to build HTML documentation
	PYTHONPATH=.pybuild/cpython3_${DEFAULT_PYVER}_flufl.i18n/build/ sphinx-build -b html docs build/sphinx/html

execute_after_dh_auto_install:
	# Exclude coverage.xml from installing
	rm -f debian/python3-flufl.i18n/usr/lib/python3*/dist-packages/coverage.xml