From: Tom Tromey Date: Sat, 26 Aug 2000 20:28:37 +0000 (+0000) Subject: * automake.in (handle_man_pages): Generate install targets for man X-Git-Tag: Release-1-4b~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bc6c15d4939fa5d1aa5268746b5e78b1f71075b;p=thirdparty%2Fautomake.git * automake.in (handle_man_pages): Generate install targets for man even if man_MANS not defined. From `danpb'. Fixes PR automake/73. --- diff --git a/ChangeLog b/ChangeLog index e6bac223c..e6abad8fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-08-26 Tom Tromey + * 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. diff --git a/THANKS b/THANKS index ffae4535e..8101930cd 100644 --- a/THANKS +++ b/THANKS @@ -20,6 +20,7 @@ Brian Ford ford@vss.fsi.com 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 diff --git a/automake.in b/automake.in index 7ffefe2a5..a737a9351 100755 --- a/automake.in +++ b/automake.in @@ -2427,12 +2427,12 @@ sub handle_man_pages { &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') { @@ -2440,6 +2440,7 @@ sub handle_man_pages { $sections{$sect} = 1; $vlist{'$(man' . $sect . '_MANS)'} = 1; + $found = 1; } } @@ -2452,10 +2453,12 @@ sub handle_man_pages 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.