File: rules

package info (click to toggle)
vulture 2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: python: 3,254; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 647 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=vulture
export PYBUILD_TEST_ARGS = -v -o addopts= {dir}
# pytype is not currently packaged.
PYBUILD_TEST_ARGS += -k 'not test_pytype'

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)

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

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md

override_dh_installman:
	txt2man -s 1 -v "vulture" -t "vulture" -r "$(VERSION)" -d "$(DEBDATE)" debian/vulture.txt > .pybuild/vulture.1
	dh_installman .pybuild/vulture.1