File: rules

package info (click to toggle)
psrecord 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 176 kB
  • sloc: python: 295; makefile: 12
file content (15 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	rm -rf .pytest_cache
	rm -rf psrecord/_version.py
	rm -rf psrecord.egg-info
	rm -f debian/psrecord.1
	dh_auto_clean

execute_before_dh_installman:
	export PYTHONPATH=$(shell pybuild --print build_dir -i python3) ; \
	export VERSION=$(shell dpkg-parsechangelog -S version) ; \
	help2man "$(CURDIR)/debian/python3-psrecord/usr/bin/psrecord" --no-info --version-string="psrecord ${VERSION}" -n "A small utility that records the CPU and memory activity of a process. Can also output results to a plot." > debian/psrecord.1