File: rules

package info (click to toggle)
python-tidylib 0.3.2~dfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: python: 411; makefile: 16; sh: 7
file content (24 lines) | stat: -rwxr-xr-x 689 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
#!/usr/bin/make -f

export PYBUILD_NAME=tidylib

tidylibname := $(shell dpkg-query --show '--showformat=$${Depends}' libtidy-dev | cut -d ' ' -f1)

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(CURDIR) python3 -m sphinx -b latex docs/rst debian/latex
	make -C debian/latex all-pdf
	PYTHONPATH=$(CURDIR) python3 -m sphinx -b html docs/rst debian/html

override_dh_installdocs:
	dh_installdocs -p pytidylib-doc --doc-main-package python3-tidylib
	dh_installdocs --remaining-packages

override_dh_compress:
	dh_compress -X.pdf

execute_after_dh_python3:
	echo libtidy:Depends=$(tidylibname) >> debian/python3-tidylib.substvars