Blame SOURCES/latencytop-Makefile-fixes.patch

7a3cc1
Makefile fixes
7a3cc1
7a3cc1
From: Michal Schmidt <mschmidt@redhat.com>
7a3cc1
7a3cc1
Fix the 'install' target:
7a3cc1
 - Don't assume SBINDIR already exists under DESTDIR.
7a3cc1
 - Install the manpage.
7a3cc1
7a3cc1
Index: latencytop-0.5/Makefile
7a3cc1
===================================================================
7a3cc1
--- latencytop-0.5.orig/Makefile
7a3cc1
+++ latencytop-0.5/Makefile
7a3cc1
@@ -3,6 +3,7 @@ HAS_GTK_GUI = 1
7a3cc1
 
7a3cc1
 DESTDIR =
7a3cc1
 SBINDIR = /usr/sbin
7a3cc1
+MANDIR  = /usr/share/man
7a3cc1
 XCFLAGS = -W  -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare
7a3cc1
 LDF = -Wl,--as-needed `pkg-config --libs glib-2.0`   -lncursesw 
7a3cc1
 
7a3cc1
@@ -36,6 +37,9 @@ clean:
7a3cc1
 
7a3cc1
 install: latencytop
7a3cc1
 	mkdir -p $(DESTDIR)/usr/share/latencytop
7a3cc1
+	mkdir -p $(DESTDIR)$(MANDIR)/man8
7a3cc1
+	mkdir -p $(DESTDIR)$(SBINDIR)
7a3cc1
 	install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
7a3cc1
 	install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
7a3cc1
 	install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/
7a3cc1
+	install -m 0644 latencytop.8 $(DESTDIR)$(MANDIR)/man8/