File: rules

package info (click to toggle)
autopep8 1.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,272 kB
  • sloc: python: 14,130; makefile: 127; sh: 16
file content (15 lines) | stat: -rwxr-xr-x 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
VERSION = $(shell dpkg-parsechangelog |  sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\1,p")
export PYBUILD_NAME=autopep8

%:
	dh $@ --buildsystem=pybuild

override_dh_installdocs:
	help2man --name=autopep8  --version-string=$(VERSION) "python3 autopep8.py" > debian/autopep8.1
	dh_installdocs

override_dh_clean:
	rm -f debian/*.1
	rm -rf build
	dh_clean