Blame SOURCES/0003-Use-PREFIX-during-make-install.patch

56d25d
From 61223ca7c6ac36c81ff06df502f8c9a02a133708 Mon Sep 17 00:00:00 2001
622d0f
From: Peter Jones <pjones@redhat.com>
622d0f
Date: Fri, 13 Sep 2013 10:37:10 -0400
56d25d
Subject: [PATCH 03/41] Use $(PREFIX) during make install.
622d0f
622d0f
Signed-off-by: Peter Jones <pjones@redhat.com>
622d0f
---
775cb0
 Makefile | 8 ++++----
775cb0
 1 file changed, 4 insertions(+), 4 deletions(-)
622d0f
622d0f
diff --git a/Makefile b/Makefile
56d25d
index 5dbf0f7..94cef27 100644
622d0f
--- a/Makefile
622d0f
+++ b/Makefile
775cb0
@@ -42,14 +42,14 @@ test: all
775cb0
 	@./test.sh
775cb0
 
622d0f
 install: all
622d0f
-	mkdir -p $(DESTDIR)/sbin
622d0f
+	mkdir -p $(DESTDIR)$(PREFIX)/sbin
622d0f
 	mkdir -p $(DESTDIR)/$(mandir)/man8
622d0f
-	install -m 755 new-kernel-pkg $(DESTDIR)/sbin
622d0f
+	install -m 755 new-kernel-pkg $(DESTDIR)$(PREFIX)/sbin
622d0f
 	install -m 644 new-kernel-pkg.8 $(DESTDIR)/$(mandir)/man8
622d0f
-	install -m 755 installkernel $(DESTDIR)/sbin
622d0f
+	install -m 755 installkernel $(DESTDIR)$(PREFIX)/sbin
622d0f
 	install -m 644 installkernel.8 $(DESTDIR)/$(mandir)/man8
622d0f
 	if [ -f grubby ]; then \
622d0f
-		install -m 755 grubby $(DESTDIR)/sbin ; \
622d0f
+		install -m 755 grubby $(DESTDIR)$(PREFIX)/sbin ; \
622d0f
 		install -m 644 grubby.8 $(DESTDIR)/$(mandir)/man8 ; \
622d0f
 	fi
622d0f
 
622d0f
-- 
56d25d
2.4.3
622d0f