File: rules

package info (click to toggle)
pyprof2calltree 1.4.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 148 kB
  • sloc: python: 501; makefile: 16
file content (20 lines) | stat: -rwxr-xr-x 571 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 PYBUILD_NAME=pyprof2calltree

%:
	dh $@ --buildsystem=pybuild

override_dh_installman:
	mkdir debian/tmp
	sed -e 's/Overview/DESCRIPTION/' \
	    -e '0,/========/s//===========/' \
	    -e 's/(screenshots_)//' \
	    -e 's/Command line usage/OPTIONS/' \
	    -e '/Change log/Q' README.rst > debian/tmp/manpage-body.rst
	cat debian/rst2man.header debian/tmp/manpage-body.rst \
	    > debian/tmp/pyprof2calltree.rst
	rst2man --no-generator debian/tmp/pyprof2calltree.rst \
	    > debian/tmp/pyprof2calltree.1
	dh_installman