File: rules

package info (click to toggle)
gcovr 7.2%2Breally-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,628 kB
  • sloc: python: 9,740; xml: 6,225; cpp: 4,063; makefile: 2,403; sh: 255; ansic: 98
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