autoconf/man
Zack Weinberg 5d3c99e562
Generate manpages in build directory.
It is not necessary to generate the manpages in the source directory
during a split build; ‘make dist’ can still find them in the build
directory and put them in the tarball.

Also add some defensive logic to the .x.1 rule to ensure that
bin/command and tests/command exist before generating man/command.1.
Without this, if you do a sufficiently parallel build, help2man may
generate the manpage from an older installed copy of ‘command’.
(Ideally, we wouldn’t have to run ‘command’ at all and this would not
be an issue, but ‘help2man’ doesn’t appear to support that.)

After this patch, the only files written to the source directory
during the ‘make’ phase of a split build (starting from a clean Git
checkout) are

doc/version.texi
doc/stamp-vti
doc/autoconf.info
doc/standards.info

These are not under our control, they’re being created by automake’s
built-in rules for Texinfo documentation.

* man/local.mk: Replace all instances of $(mansrcdir) with literal ‘man’.
  (.x.1): Ensure that bin/command, tests/command, and the man
  directory exist before creating man/command.1.
2020-08-18 16:32:33 -04:00
..
autoconf.x maint: remove empty lines at EOF 2012-01-21 11:49:40 +01:00
autoheader.x maint: remove empty lines at EOF 2012-01-21 11:49:40 +01:00
autom4te.x * Makefile.am: Ship, build and install Autom4te. 2001-07-24 08:43:06 +00:00
autoreconf.x 1999-10-31 Akim Demaille <akim@epita.fr> 2000-01-26 12:32:13 +00:00
autoscan.x docs: configure.in still mentioned in manpages 2013-03-05 07:44:31 -07:00
autoupdate.x docs: configure.in still mentioned in manpages 2013-03-05 07:44:31 -07:00
common.x * man/config.guess.x: New file. 2000-12-06 16:02:58 +00:00
ifnames.x maint: remove empty lines at EOF 2012-01-21 11:49:40 +01:00
local.mk Generate manpages in build directory. 2020-08-18 16:32:33 -04:00