mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
22440373e1
BootGraph and SleepGraph man pages - includes full descriptions of tool arguments and commands - includes examples of common use cases Makefile - no build required, used only for install - installs man pages and tools as libraries with links - includes an uninstall Signed-off-by: Todd Brandt <todd.e.brandt@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
29 lines
927 B
Makefile
29 lines
927 B
Makefile
PREFIX ?= /usr
|
|
DESTDIR ?=
|
|
|
|
all:
|
|
@echo "Nothing to build"
|
|
|
|
install :
|
|
install -d $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install analyze_suspend.py $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install analyze_boot.py $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
|
|
ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py $(DESTDIR)$(PREFIX)/bin/bootgraph
|
|
ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py $(DESTDIR)$(PREFIX)/bin/sleepgraph
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install sleepgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
|
|
|
|
uninstall :
|
|
rm $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8
|
|
rm $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8
|
|
|
|
rm $(DESTDIR)$(PREFIX)/bin/bootgraph
|
|
rm $(DESTDIR)$(PREFIX)/bin/sleepgraph
|
|
|
|
rm $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py
|
|
rm $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py
|
|
rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph
|