File: rules

package info (click to toggle)
docopt 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 284 kB
  • sloc: python: 1,037; makefile: 10
file content (20 lines) | stat: -rwxr-xr-x 486 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

export PYBUILD_NAME=$(DEB_SOURCE)

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

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/upstream_changelog

override_dh_installchangelogs:
	grep -A 10000 Changelog README.rst | grep -A 1000 $(DEB_VERSION_UPSTREAM) > debian/upstream_changelog
	dh_installchangelogs debian/upstream_changelog