From f179ef136d4517d0b95fc044816c200e9a27e0e1 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sat, 26 Jul 2003 10:52:45 +0000 Subject: - Install package documentation into $RPM_DOC_DIR if this environment variable is set. On RedHat 9 $RPM_DOC_DIR points to /usr/share/doc/packages, but documentation lives in /usr/share/doc. This is a bug in RedHat's RPM configuration; working around it would break other distributions. --- Makefile.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index c9ac0e4..dfd1dc1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -8,8 +8,8 @@ exec_prefix := @exec_prefix@ bindir := @bindir@ libdir := @libdir@ datadir := @datadir@ +docdir := @docdir@ mandir := $(datadir)/man -docdir := $(datadir)/doc localedir := $(datadir)/locale etcdir := $(subst /usr/etc,/etc,$(prefix)/etc) @@ -213,8 +213,9 @@ install : scripts @INSTALL@ -d $(BUILD_ROOT)$(LIB_DIR) @INSTALL@ -m 755 -s $(LIB:%=lib/%) $(BUILD_ROOT)$(LIB_DIR)/ - @INSTALL@ -d $(BUILD_ROOT)$(docdir)/$(PACKAGE) - @INSTALL@ -m 644 doc/README $(BUILD_ROOT)$(docdir)/$(PACKAGE)/ + @INSTALL@ -d $(BUILD_ROOT)$(docdir)/$(PACKAGE)-$(VERSION)/ + @INSTALL@ -m 644 doc/README \ + $(BUILD_ROOT)$(docdir)/$(PACKAGE)/-$(VERSION)/ @INSTALL@ -d $(BUILD_ROOT)$(mandir)/man1 @INSTALL@ -m 644 $(MAN1) $(BUILD_ROOT)$(mandir)/man1/ -- cgit