documentation installed in wrong directory

View: New views
1 Messages — Rating Filter:   Alert me  

documentation installed in wrong directory

by Bruno Haible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I installed cgicc-3.2.7 using the commands
  ./configure --prefix=/packages/gnu
  make
  make install
and the documentation was installed in directory /packages/gnu/doc/cgicc-3.2.7.
This location for documentation is deprecated for years: both the GNU standards
  http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
and the FHS (Filesystem Hierarchy Standard)
  http://www.pathname.com/fhs/
specify that it should go under /packages/gnu/share/doc/.

The fix is as follows. Using @docdir@ not only causes the doc to be installed
under $prefix/share/doc/, it also takes into account the --docdir
option that the user may have provided at configuration time.

--- doc/Makefile.am.bak 2008-07-06 17:27:18.000000000 +0200
+++ doc/Makefile.am 2008-08-06 11:11:19.000000000 +0200
@@ -2,7 +2,7 @@
 
 CLEANFILES = *~ stamp
 
-docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION)
+docdir = @docdir@/$(PACKAGE)-$(VERSION)
 
 FILES = index.tmpl license.tmpl lists.tmpl bugs.tmpl demos.tmpl \
 cgi-overview.tmpl tutorial.tmpl lib-overview.tmpl COPYING COPYING.LIB \



_______________________________________________
bug-cgicc mailing list
bug-cgicc@...
http://lists.gnu.org/mailman/listinfo/bug-cgicc