File: rules

package info (click to toggle)
python-html2text 2018.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 744 kB
  • sloc: python: 1,600; sh: 94; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 554 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

override_dh_auto_test:
	dh_auto_test -- --test-args $(CURDIR)/test

override_dh_auto_install:
	dh_auto_install -- --after-install \
	    'mv {destdir}/usr/bin/html2text {destdir}/usr/bin/html2markdown.py{version.major}'

override_dh_installman:
	cp debian/html2markdown.1 debian/html2markdown.py2.1
	dh_installman -p python-html2text debian/html2markdown.py2.1
	cp debian/html2markdown.1 debian/html2markdown.py3.1
	dh_installman -p python3-html2text debian/html2markdown.py3.1