]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_man_pages): Generate install targets for man
authorTom Tromey <tromey@redhat.com>
Sat, 26 Aug 2000 20:28:37 +0000 (20:28 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 26 Aug 2000 20:28:37 +0000 (20:28 +0000)
even if man_MANS not defined.  From `danpb'.  Fixes PR automake/73.

ChangeLog
THANKS
automake.in

index e6bac223ce7982fff931c7278d11b59da1435456..e6abad8fd191de0005738358ff9ccbeecb4777ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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.
 
diff --git a/THANKS b/THANKS
index ffae4535e37683b6f00b0545d758de2135eb48ae..8101930cd83a90a03b67dc049c4f662ce9f8806e 100644 (file)
--- 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
index 7ffefe2a5ef2a855ec7a143ac94e94757230a7b8..a737a93518dc94f5d2b96527f69ceca5d87729bd 100755 (executable)
@@ -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.
This page took 0.040583 seconds and 5 git commands to generate.