| 1 |
#!/usr/bin/make -f |
| 2 |
export PYBUILD_SYSTEM=pyproject |
| 3 |
export PYBUILD_NAME=amd-debug-tools |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild |
| 7 |
|
| 8 |
execute_after_dh_install: |
| 9 |
# Don't install unncessary top level files (in-tree launcher and self tests) |
| 10 |
rm -rf debian/amd-debug-tools/usr/lib/python*/dist-packages/test_* |
| 11 |
rm -rf debian/amd-debug-tools/usr/lib/python*/dist-packages/launcher.py |
| 12 |
|
| 13 |
# Generate man pages using help2man |
| 14 |
mkdir -p debian/amd-debug-tools/usr/share/man/man1 |
| 15 |
PYTHONPATH=src help2man -n "AMD s2idle debugging tool" -s 1 -N \ |
| 16 |
-o debian/amd-debug-tools/usr/share/man/man1/amd-s2idle.1 \ |
| 17 |
debian/amd-debug-tools/usr/bin/amd-s2idle |
| 18 |
PYTHONPATH=src help2man -n "AMD BIOS debugging tool" -s 1 -N \ |
| 19 |
-o debian/amd-debug-tools/usr/share/man/man1/amd-bios.1 \ |
| 20 |
debian/amd-debug-tools/usr/bin/amd-bios |
| 21 |
PYTHONPATH=src help2man -n "AMD P-state debugging tool" -s 1 -N \ |
| 22 |
-o debian/amd-debug-tools/usr/share/man/man1/amd-pstate.1 \ |
| 23 |
debian/amd-debug-tools/usr/bin/amd-pstate |
| 24 |
PYTHONPATH=src help2man -n "AMD TTM debugging tool" -s 1 -N \ |
| 25 |
-o debian/amd-debug-tools/usr/share/man/man1/amd-ttm.1 \ |
| 26 |
debian/amd-debug-tools/usr/bin/amd-ttm |