License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / tools / power / pm-graph / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
22440373
TB
2PREFIX ?= /usr
3DESTDIR ?=
4
5all:
6 @echo "Nothing to build"
7
2158e724 8install : uninstall
22440373
TB
9 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph
10 install analyze_suspend.py $(DESTDIR)$(PREFIX)/lib/pm-graph
11 install analyze_boot.py $(DESTDIR)$(PREFIX)/lib/pm-graph
12
13 ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py $(DESTDIR)$(PREFIX)/bin/bootgraph
14 ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py $(DESTDIR)$(PREFIX)/bin/sleepgraph
15
16 install -d $(DESTDIR)$(PREFIX)/share/man/man8
17 install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
18 install sleepgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
19
20uninstall :
2158e724
TB
21 rm -f $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8
22 rm -f $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8
22440373 23
2158e724
TB
24 rm -f $(DESTDIR)$(PREFIX)/bin/bootgraph
25 rm -f $(DESTDIR)$(PREFIX)/bin/sleepgraph
22440373 26
2158e724
TB
27 rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py
28 rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py
29 rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/*.pyc
30 if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph ] ; then \
31 rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph; \
32 fi;