File: rules

package info (click to toggle)
cpplint 1.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,776 kB
  • sloc: cpp: 13,511; python: 8,913; ansic: 854; makefile: 18
file content (28 lines) | stat: -rwxr-xr-x 758 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
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

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

PYTHON3_VERSIONS = $(shell py3versions -d)

BIN_NAME = cpplint
BIN_DESCRIPTION = "Static code checker for C++"

export PYBUILD_NAME=cpplint
export PYBUILD_AFTER_TEST=rm {dir}/.pybuild/*/build/.coverage
export PYBUILD_TEST_ARGS={dir}/*test.py

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_installman:
	PYTHONPATH=debian/cpplint/usr/lib/$(PYTHON3_VERSIONS)/dist-packages \
	help2man \
		--name $(BIN_DESCRIPTION) \
		--no-info \
		--version-string $(DEB_VERSION_UPSTREAM) \
		--output debian/$(BIN_NAME).1 \
		--no-discard-stderr \
		debian/cpplint/usr/bin/$(BIN_NAME)