patch applied (ghc): Explicitly set "docdir" when calling make,
configure's --docdir seems to be ignored
Judah Jacobson
judah.jacobson at gmail.com
Sun Sep 2 14:04:51 EDT 2007
On 9/2/07, Sven Panne <Sven.Panne at aedion.de> wrote:
> * Explicitly set "docdir" when calling make, configure's --docdir seems to be ignored
>
> M ./ghc.spec.in -4 +2
>
I've actually been looking at that problem (in an effort to learn more
about ghc's make system), and I think I tracked down the cause of this
issue. In config.mk.in, there is
> prefix = @prefix@
> datarootdir = @datarootdir@
> exec_prefix = @exec_prefix@
> bindir = @bindir@
(etc.)
and later:
> docdir = $(datarootdir)/doc/ghc
> htmldir = $(docdir)
> dvidir = $(docdir)
> pdfdir = $(docdir)
> psdir = $(docdir)
But the variable "datarootdir" appears nowhere else in the ghc tree,
so it's set to "@datarootdir@" when config.mk.in is turned into
config.mk. (In contrast, variables like exec_prefix, bindir etc. are
set externally to config.mk.in, and config.mk.in also gives them
defaults if they're empty.)
That's my assessment as a newcomer to the make system; I'm not sure
what the right fix would be (probably either setting or removing the
datarootdir variable, I guess).
Best,
-Judah
More information about the Cvs-ghc
mailing list