Makefile: Provide PACKAGE_TARNAME for autoconf default docdir

docdir was previously being set to "${prefix}/share/doc/${PACKAGE_NAME}"
when it wasn't explicitely set on configuration using --docdir. Without
this appearing in the Makefile, some files silently get silently
installed directly into ${prefix}/share/doc instead within a fish
subdirectory.

I also added datarootdir to fix an autoconf warning,  since autoconf
normally would use it for the directory paths (e.g. docdir =
${datarootdir}/doc/${PACKAGE_TARNAME}). The autoconf generated configure
script has a hack to fix this, but states: "FIXME: This hack should be
removed a few years after 2.60."
This commit is contained in:
Dylan Smith 2010-11-22 19:05:06 +08:00 committed by Grissiom
parent e0ba91db31
commit 82f8c3834e

View file

@ -31,6 +31,8 @@
# hallucinations. # hallucinations.
# #
# Used by docdir
PACKAGE_TARNAME = @PACKAGE_TARNAME@
# #
# Programs # Programs
@ -46,6 +48,7 @@ INSTALL:=@INSTALL@
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@ datadir = @datadir@
bindir = @bindir@ bindir = @bindir@
mandir = @mandir@ mandir = @mandir@