[PATCH] autoconf: Set mandir in config.mak.in and export variables not in Makefile
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jun 29, 2006, 17:47 UTC
- Message-ID
- <200606291947.50980.jnareb@gmail.com>
- In-Reply-To
- <200606291835.53788.jnareb@gmail.com>
This patch with the previous "[PATCH] Allow INSTALL, bindir, mandir to be set in main Makefile" patch allows ./configure script to set where manpages will be installed using --mandir=DIR (./configure defaults to PREFIX/man).
Signed-off-by: Jakub Narebski <jnareb@gmail.com> ---
Uwe Zeisberger wrote:
Show 13 quoted lines
> autoconf does to much things, even with that little configure.ac. > (But I agree, it's much better than automake :-) > > E.g. > > ./configure --prefix=$HOME/usr --mandir=$HOME/usr/share/man > > is supported by the configure script, but the manpages are installed > in $HOME/usr/man all the same. > > BTW: Even if I specify mandir=... in config.mak, it is not respected, > because only the toplevel Makefile includes config.mak. (I didn't > test it, but I think I could export mandir in config.mak ...)
This patch and previous one adressess this.
config.mak.in | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/config.mak.in b/config.mak.in index 82d80e2..82c9781 100644 --- a/config.mak.in +++ b/config.mak.in @@ -8,5 +8,11 @@ #gitexecdir = @libexecdir@/git-core/ template_dir = @datadir@/git-core/templates/ GIT_PYTHON_DIR = @datadir@/git-core/python +mandir=@mandir@ + srcdir = @srcdir@ VPATH = @srcdir@ + +export exec_prefix mandir +export srcdir VPATH +
-- 1.4.0