File: rules

package info (click to toggle)
python-opentracing 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 816 kB
  • sloc: python: 3,489; makefile: 98
file content (30 lines) | stat: -rwxr-xr-x 783 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
28
29
30
#!/usr/bin/make -f

export PYBUILD_NAME = opentracing

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean -O--buildsystem=pybuild

	# Remove pytest leftovers.
	rm -rf .pytest_cache

	# Remove sphinx-generated files.
	rm -rf docs/_build

	# Remove generated coverage files.
	rm -f .coverage coverage.xml

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
	dh_auto_build -O--buildsystem=pybuild

	# Generate the HTML and Info documentation.
	$(MAKE) -C docs html info PYTHONPATH=..

override_dh_installdocs:
	dh_installdocs -O--buildsystem=pybuild --doc-main-package=python3-opentracing --package=python-opentracing-doc
	dh_installdocs -O--buildsystem=pybuild --remaining-packages