1PREFIX ?= /usr 2DESTDIR ?= 3 4all: 5 @echo "Nothing to build" 6 7install : 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 19uninstall : 20 rm $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8 21 rm $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8 22 23 rm $(DESTDIR)$(PREFIX)/bin/bootgraph 24 rm $(DESTDIR)$(PREFIX)/bin/sleepgraph 25 26 rm $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_boot.py 27 rm $(DESTDIR)$(PREFIX)/lib/pm-graph/analyze_suspend.py 28 rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph 29