From: Valient G. <vg...@po...> - 2005-01-27 18:16:48
|
I just checked and my redhat system also uses /usr/share/doc, and it appears that Debian does as well, so I guess Suse is out on its own on this one. It doesn't really matter to me if the docdir is set in configure, or on the command line to make (or both). That can be easily automated with a build script. I'd just like to avoid having to always patch the source before building.. Well, the first patch I'd sent let you specify docdir on the command line, so I guess the only objection was the default location of docdir and a few missing files? Ok.. that's easy, this allows you to override docdir from the 'make install' command line -- =================================================================== RCS file: /cvsroot/fuse/fuse/Makefile.am,v retrieving revision 1.14 diff -u -3 -p -r1.14 Makefile.am --- Makefile.am 11 Nov 2004 10:33:56 -0000 1.14 +++ Makefile.am 27 Jan 2005 18:12:27 -0000 @@ -9,6 +9,14 @@ EXTRA_DIST = \ FAQ \ doc/how-fuse-works +docdir = ${datadir}/doc/${PACKAGE} + +doc_DATA = README README-2.4 README.NFS \ + NEWS INSTALL ChangeLog \ + AUTHORS COPYING COPYING.LIB \ + Filesystems FAQ \ + doc/how-fuse-works + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = fuse.pc Index: example/Makefile.am =================================================================== RCS file: /cvsroot/fuse/fuse/example/Makefile.am,v retrieving revision 1.6 diff -u -3 -p -r1.6 Makefile.am --- example/Makefile.am 3 Jun 2004 13:21:08 -0000 1.6 +++ example/Makefile.am 27 Jan 2005 18:12:27 -0000 @@ -2,6 +2,11 @@ noinst_PROGRAMS = fusexmp null hello +docdir = ${datadir}/doc/${PACKAGE} +exampledir = $(docdir)/examples + +example_DATA = fusexmp.c hello.c Makefile.am null.c + fusexmp_SOURCES = fusexmp.c null_SOURCES = null.c hello_SOURCES = hello.c Stefan Schweizer wrote: >I never saw that "packages" dir, but I think it is not standard, maybe >more a way of suse packaging, I have found one example, cedega.tar, >that seems to install to /usr/share/doc by default. > >And I think it should be done in make install, if someone wants >something else than the default (/usr/share/doc I propose), like yours >"/usr/share/doc/packages": > > > make DESTDIR=${D} \ > docdir=/usr/share/doc/${PF} \ > install > >What do you think? > >Kind regards, >Stefan > > |