File: rules

package info (click to toggle)
amd-debug-tools 0.2.13-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: python: 11,042; makefile: 30
file content (27 lines) | stat: -rwxr-xr-x 1,158 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f
export PYBUILD_SYSTEM=pyproject
export PYBUILD_NAME=amd-debug-tools
%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_install:
	dh_install

	# Don't install unncessary top level files (in-tree launcher and self tests)
	rm -rf debian/amd-debug-tools/usr/lib/python*/dist-packages/test_*
	rm -rf debian/amd-debug-tools/usr/lib/python*/dist-packages/launcher.py

	# Generate man pages using help2man
	mkdir -p debian/amd-debug-tools/usr/share/man/man1
	PYTHONPATH=src help2man -n "AMD s2idle debugging tool" -s 1 -N		\
		-o debian/amd-debug-tools/usr/share/man/man1/amd-s2idle.1	\
		debian/amd-debug-tools/usr/bin/amd-s2idle
	PYTHONPATH=src help2man -n "AMD BIOS debugging tool" -s 1 -N		\
		-o debian/amd-debug-tools/usr/share/man/man1/amd-bios.1		\
		debian/amd-debug-tools/usr/bin/amd-bios
	PYTHONPATH=src help2man -n "AMD P-state debugging tool" -s 1 -N		\
		-o debian/amd-debug-tools/usr/share/man/man1/amd-pstate.1	\
		debian/amd-debug-tools/usr/bin/amd-pstate
	PYTHONPATH=src help2man -n "AMD TTM debugging tool" -s 1 -N		\
		-o debian/amd-debug-tools/usr/share/man/man1/amd-ttm.1		\
		debian/amd-debug-tools/usr/bin/amd-ttm