File: rules

package info (click to toggle)
gcovr 5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,020 kB
  • sloc: python: 7,020; xml: 5,361; cpp: 3,872; makefile: 1,595; sh: 166; ansic: 38
file content (29 lines) | stat: -rwxr-xr-x 707 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
29
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/pkg-info.mk

PYTHON3_VERSIONS = $(shell py3versions -r)
PYTHON3_DEFAULT_VERSION = $(shell py3versions -d)
pyalldo = set -e; $(foreach py, $(PYTHON3_VERSIONS), $(py) $(1);)

BIN_NAME = gcovr
BIN_DESCRIPTION = "generate simple coverage reports"

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

override_dh_installman:
	PYTHONPATH=debian/gcovr/usr/lib/$(PYTHON3_DEFAULT_VERSION)/dist-packages \
	help2man \
		--name $(BIN_DESCRIPTION) \
		--no-info \
		--version-string $(DEB_VERSION_UPSTREAM) \
		--output debian/$(BIN_NAME).1 \
		debian/gcovr/usr/bin/gcovr
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build
	rm -rf *.egg-info