@page
@vskip 0pt plus 1filll
-Copyright @copyright{} 1995, 1996, 2000 Free Software Foundation, Inc.
+Copyright @copyright{} 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
@sp 2
This is the first edition of the GNU Automake documentation,@*
and is consistent with GNU Automake @value{VERSION}.@*
pages are declared using the @samp{MANS} primary. Generally the
@code{man_MANS} macro is used. Man pages are automatically installed in
the correct subdirectory of @code{mandir}, based on the file extension.
-They are not automatically included in the distribution.
@vindex MANS
@vindex man_MANS
+File extensions such as @samp{.1c} are handled by looking for the valid
+part of the extension and using that to determine the correct
+subdirectory of @code{mandir}. Valid section names are the digits
+@samp{0} through @samp{9}, and the letters @samp{l} and @samp{n}.
+
+Sometimes developers prefer to name a man page something like
+@file{foo.man} in the source, and then rename it to have the correct
+suffix, e.g. @file{foo.1}, when installing the file. Automake also
+supports this mode. For a valid section named @var{SECTION}, there is a
+corresponding directory named @samp{man@var{SECTION}dir}, and a
+corresponding @samp{_MANS} variable. Files listed in such a variable
+are installed in the indicated section. If the file already has a
+valid suffix, then it is installed as-is; otherwise the file suffix is
+changed to match the section.
+
+For instance, consider this example:
+@example
+man1_MANS = rename.man thesame.1 alsothesame.1c
+@end example
+
+In this case, @file{rename.man} will be renamed to @file{rename.1} when
+installed, but the other files will keep their names.
+
@cindex Target, install-man
@cindex Target, noinstall-man
@cindex install-man target