Robert Dodier writes:
> Following earlier discussion I've reenabled the Makefiles for
> doc/info/es and doc/info/pt .
Hi Robert!
I'm still fighting with Spanish and Portuguese info
installation. Unfortunately the workaround you suggested
by setting
infodir=@prefix@/info/es
is not good. It works in very simplistic case only.
Let me show what is wrong. To begin with let's summarize
usual configure/make install functionality and how it is
supposed to work.
1. On configure stage we define general program location
and info location with --prefix and --infodir options
respectively
configure --prefix=my_prefix --infodir=my_infodir
Setting prefix and infodir independently is absolutely
"must have" functionality since on different systems
prefix may be /usr or /usr/local while info may go
into /usr/info or /usr/share/info and in all possible
combinations. Setting
infodir=@prefix@/info/es
doesn't allow to to set --infodir independently.
It always goes into /info/es subdir of my_prefix.
This is bad.
2. On make install stage we do
make install
only on if I'm root of build package locally for my
own purpose. In this case my_prefix and my_infodir
are good for installation targets. But often we
we do something like this
make install prefix=my_install_prefix infodir=my_install_infodir
Notice that my_install_prefix and my_install_infodir are
different from my_prefix and my_infodir (take a look at
maxima.spec and pay attention to %buildroot -- this is
the way rpm usually works on all rpm-based Linux distros).
But with
infodir=@prefix@/info/es
this doesn't work as expected. Since @prefix@ is expanded
on configure stage setting prefix on make install stage
doesn't work at all. It is possible to improve situation
a bit with
infodir=${prefix}/info/es
Now make install obey new prefix=my_install_prefix.
But there are two more serious problems. First,
infodir is still fixed subdirectory of prefix.
Bad. Second, even worse, making
make install infodir=my_install_infodir
overrides infodir for all directories and dumps
all info in one directory. Upon some reflection
it clear that any attempts to set
infodir=
on per-directory basis is not good.
Since
make install infodir=my_install_infodir
overrides such local settings for all
directories.
I see only three way to resolve the problem
1. Do something with internal automake variable
am__infodir.
2. Don't use automake for info/es and info/pt
directories.
It seems that my analysis is correct.
Best wishes,
Vadim
--
Vadim V. Zhytnikov