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
|