[librep] don't hardcode /usr in manpage installation path



commit cfee9d182bdd11b1dc52d3edaca223161df1ea3f
Author: Christopher Roy Bratusek <chris nanolx org>
Date:   Mon Dec 7 18:09:15 2009 +0100

    don't hardcode /usr in manpage installation path

 ChangeLog       |    2 ++
 man/Makefile.in |    6 +++---
 man/news.texi   |    2 ++
 3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e49c100..15054de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+2009-12-06  Christopher Bratusek <zanghar freenet de>
+	* man/Makefile.in: don't hardcode /usr in manpage installation path
 2009-12-05  Christopher Bratusek <zanghar freenet de>
 	* configure.in: bumped library version to 9.4.1
 
diff --git a/man/Makefile.in b/man/Makefile.in
index 84d1ba0..fce001a 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -51,17 +51,17 @@ install : librep.info installdirs
 	-install-info --info-dir=$(DESTDIR)$(infodir) librep.info
 	for f in rep*.1; do \
 		gzip $$f -c > $$f.gz; \
-		$(INSTALL_DATA) $$f.gz $(DESTDIR)/usr/share/man/man1/; \
+		$(INSTALL_DATA) $$f.gz $(DESTDIR)$(prefix)/share/man/man1/; \
 	done
 
 installdirs : mkinstalldirs
 	$(SHELL) $< $(DESTDIR)$(infodir)
-	$(SHELL) $< $(DESTDIR)/usr/share/man/man1/
+	$(SHELL) $< $(DESTDIR)$(prefix)/share/man/man1/
 
 uninstall :
 	rm -f $(DESTDIR)$(infodir)/librep.info*
 	-install-info --remove --info-dir=$(DESTDIR)$(infodir) librep.info
-	rm -f $(DESTDIR)/usr/share/man/man1/rep*
+	rm -f $(DESTDIR)$(prefix)/share/man/man1/rep*
 
 clean :
 	rm -f *~ librep.info* librep.?? librep.??? rep*.1.gz
diff --git a/man/news.texi b/man/news.texi
index 7a006ed..6e95c20 100644
--- a/man/news.texi
+++ b/man/news.texi
@@ -12,6 +12,8 @@
 @item Use $prefix/lib instead of $prefix/libexec
 
 @item Fixups for OpenBSD [Jasper Lievisse Adriaanse]
+
+ item Don't hardcode /usr in manpage installation path
 @end itemize
 
 @heading 0.90.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]