| 1 | #!/usr/bin/make -f |
| 2 | VERSION = $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\1,p") |
| 3 | export PYBUILD_NAME=autopep8 |
| 4 | |
| 5 | %: |
| 6 | dh $@ --buildsystem=pybuild |
| 7 | |
| 8 | execute_before_dh_installdocs: |
| 9 | help2man --name=autopep8 --version-string=$(VERSION) "python3 autopep8.py" > debian/autopep8.1 |
| 10 | |
| 11 | execute_before_dh_clean: |
| 12 | rm -f debian/*.1 |
| 13 | rm -rf build |