File: rules

package info (click to toggle)
pythondialog 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,284 kB
  • ctags: 428
  • sloc: python: 3,780; makefile: 162
file content (28 lines) | stat: -rwxr-xr-x 656 bytes parent folder | download | duplicates (2)
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
28
#!/usr/bin/make -f

export PYBUILD_NAME=dialog

PKG := python3-$(PYBUILD_NAME)
PKGDIR := debian/$(PKG)
PKGDOCDIR := $(PKGDIR)/usr/share/doc/$(PKG)

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

override_dh_clean:
	dh_clean
	rm -rf debian/doc-build

override_dh_auto_build:
	dh_auto_build
	# Build the Sphinx-based documentation
	PYTHONPATH=. http_proxy='127.0.0.1:9' \
	  sphinx-build -N -b html doc debian/doc-build/html

override_dh_compress:
	dh_compress -X.py

override_dh_installexamples:
	dh_installexamples
	find $(PKGDOCDIR)/examples -type f -name '*.py' -exec sed -i -e \
	  '1s,^#! */usr/bin/env \(python3\)$$,#! /usr/bin/\1,' '{}' +