File: rules

package info (click to toggle)
python-ptk 1.3.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 396 kB
  • sloc: python: 3,616; makefile: 202
file content (27 lines) | stat: -rwxr-xr-x 758 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

# See https://wiki.debian.org/Python/LibraryStyleGuide.
export PYBUILD_NAME := ptk
%:
	dh $@ --buildsystem=pybuild

# README.rst and html are also mentioned in python-ptk-doc.doc*.
# And in debian/clean.
.PHONY: execute_after_dh_auto_build
# Forbid internet access.
execute_after_dh_auto_build: http_proxy=127.0.0.1:9
execute_after_dh_auto_build: https_proxy=127.0.0.1:9
execute_after_dh_auto_build:
# Refresh README.rst.
	python3 prepare.py
# Refresh doc/build/html/.
	$(MAKE) -C doc html

.PHONY: override_dh_auto_test
override_dh_auto_test:
	python3 tests/test_all.py

.PHONY: override_dh_installdocs
override_dh_installdocs:
	dh_installdocs --package=python-ptk-doc --doc-main-package=python3-ptk
	dh_installdocs --remaining-packages