# Options to avoid docs generation/installation

2 messages from 2017-05-21 to 2017-05-21. Participants: Neil Cafferkey, Ævar Arnfjörð Bjarmason.
Thread: https://gitlist.dev/t/46013

## Neil Cafferkey, 2017-05-21 02:56

Subject: Options to avoid docs generation/installation
Message-ID: <20170521025604.GA8068@csmail.ucc.ie>
URL: https://gitlist.dev/e/20170521025604.GA8068%40csmail.ucc.ie

```
Hi,

The INSTALL file says that docs are not built by default, but that's not my 
experience. "make all" results in the generation of several Perl man pages, 
e.g. "Git.3pm". Is it the case that the behaviour documented is not 
propagated to the perl subdir?

Also, setting --mandir=/dev/null still results in the pages being installed 
in their usual location (at least in combination with setting --prefix to 
avoid disturbing my production git installation).

Regards,
Neil

```

## Ævar Arnfjörð Bjarmason, 2017-05-21 06:17

Subject: Re: Options to avoid docs generation/installation
Message-ID: <CACBZZX4VjxfHBn6O6mWBh-DfAy9cHUxcnn-UfVHzCqm+2VZOiA@mail.gmail.com>
URL: https://gitlist.dev/e/CACBZZX4VjxfHBn6O6mWBh-DfAy9cHUxcnn-UfVHzCqm%2B2VZOiA%40mail.gmail.com
In-Reply-To: <20170521025604.GA8068@csmail.ucc.ie>

```
On Sun, May 21, 2017 at 4:56 AM, Neil Cafferkey <n.cafferkey@cs.ucc.ie> wrote:
> The INSTALL file says that docs are not built by default, but that's not my
> experience. "make all" results in the generation of several Perl man pages,
> e.g. "Git.3pm". Is it the case that the behaviour documented is not
> propagated to the perl subdir?

Yes, this is a bug in the Makefile glue code for the perl subdir.

> Also, setting --mandir=/dev/null still results in the pages being installed
> in their usual location (at least in combination with setting --prefix to
> avoid disturbing my production git installation).

Sounds like another bug, maybe, but I didn't have time to dig into
this one. When you run ./configure --mandir=* that does end up in
config.mak.autogen, which we source and it should override the
`mandir` in the Makefile, but maybe it doesn't work properly...

```
