summaryrefslogtreecommitdiffstats
path: root/tools/power/pm-graph/Makefile
blob: 4d0ccc89e6c67b7a56b2fe5c2f4fb14e1e42e9a0 (plain)
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
28
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