2000-08-26 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_man_pages): Generate install targets for man
+ even if man_MANS not defined. From `danpb'. Fixes PR automake/73.
+
* m4/depend.m4 (depcpp): Use `-o conftest.o'.
Fix for PR automake/74. From js pendry.
Brian Jones cbj@nortel.net
Bruno Haible haible@ilog.fr
Chris Provenzano proven@io.proven.org
+danbp danpb@nospam.postmaster.co.uk
Dave Morrison dave@bnl.gov
David A. Swierczek swiercze@mr.med.ge.com
David Zaroski cz253@cleveland.Freenet.Edu
{
&am_line_error ('MANS', "\`MANS' is an anachronism; use \`man_MANS'")
if &variable_defined ('MANS');
- return if ! &variable_defined ('man_MANS');
# Find all the sections in use. We do this by first looking for
# "standard" sections, and then looking for any additional
# sections used in man_MANS.
local ($sect, %sections, %vlist);
+ local ($found) = 0;
# Add more sections as needed.
foreach $sect ('0'..'9', 'n', 'l')
{
{
$sections{$sect} = 1;
$vlist{'$(man' . $sect . '_MANS)'} = 1;
+ $found = 1;
}
}
if (/\.([0-9a-z])([a-z]*)$/)
{
$sections{$1} = 1;
+ $found = 1;
}
}
}
+ return unless $found;
# Now for each section, generate an install and unintall rule.
# Sort sections so output is deterministic.