On Tue, 2006-12-12 at 12:24 +0100, Jim Meyering wrote:
> If you put this in Makefile.am
>
> dist_doc_DATA = FILE
>
> then FILE will be installed in $(docdir), which expands to
> ${datarootdir}/doc/${PACKAGE_TARNAME}, which is what you want.
> FYI, it is common to install README into /usr/share/doc/pkg_name/,
> so people often do this in Makefile.am:
>
> dist_doc_DATA = README
Though it's not strictly necessary for building rpm's; the %doc macro in
a specfile will take a file from the source tarball and stick it into
the right place without going through the build root.
David