recover (1.3c-11) Makefile

Summary

 Makefile |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

--- recover-1.3c.orig/Makefile
+++ recover-1.3c/Makefile
@@ -3,7 +3,7 @@
 
 # if you change this, don't forget to change RECOVER_QUESTIONS
 # in recover.h
-PREFIX=/usr
+PREFIX=$(DESTDIR)/usr
 
 CC=gcc
 CFLAGS=-g -x c	# To compile as C
@@ -30,9 +30,10 @@
 
 install: recover
 	rm -f -r $(PREFIX)/share/recover
-	mkdir -p $(PREFIX)/bin
+	mkdir -p $(PREFIX)/sbin
 	mkdir -p $(PREFIX)/share/recover
-	mkdir -p $(PREFIX)/man/man1
+	mkdir -p $(PREFIX)/share/man/man1
 	cp recover_questions $(PREFIX)/share/recover
-	cp -f recover $(PREFIX)/bin
-	cp -f recover.1.gz $(PREFIX)/man/man1
+	cp -f recover $(PREFIX)/sbin
+	#cp -f recover.1.gz $(PREFIX)/share/man/man1
+	gzip -c debian/recover.1 > $(PREFIX)/share/man/man1/recover.1.gz