]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - tools/power/pm-graph/Makefile
Merge branch 'kvm-ppc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus...
[mirror_ubuntu-focal-kernel.git] / tools / power / pm-graph / Makefile
1 PREFIX ?= /usr
2 DESTDIR ?=
3
4 all:
5 @echo "Nothing to build"
6
7 install : uninstall
8 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph
9 install analyze_suspend.py $(DESTDIR)$(PREFIX)/lib/pm-graph
10 install analyze_boot.py $(DESTDIR)$(PREFIX)/lib/pm-graph
11
12 ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py $(DESTDIR)$(PREFIX)/bin/bootgraph
13 ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py $(DESTDIR)$(PREFIX)/bin/sleepgraph
14
15 install -d $(DESTDIR)$(PREFIX)/share/man/man8
16 install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
17 install sleepgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
18
19 uninstall :
20 rm -f $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8
21 rm -f $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8
22
23 rm -f $(DESTDIR)$(PREFIX)/bin/bootgraph
24 rm -f $(DESTDIR)$(PREFIX)/bin/sleepgraph
25
26 rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py
27 rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py
28 rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/*.pyc
29 if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph ] ; then \
30 rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph; \
31 fi;