]> sourceware.org Git - automake.git/commitdiff
* tests/Makefile.am (XFAIL_TESTS): Removed man.test.
authorTom Tromey <tromey@redhat.com>
Sun, 6 May 2001 05:39:58 +0000 (05:39 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 6 May 2001 05:39:58 +0000 (05:39 +0000)
* mans.am (install-man%SECTION%): Handle dist_ and nodist_
prefixes.
(uninstall-man%SECTION%): Likewise.
* automake.in (handle_man_pages): Handle dist_ and nodist_
prefixes.

ChangeLog
automake.in
lib/am/mans.am
mans.am
tests/Makefile.am
tests/Makefile.in

index 714f7c321dbadd09b96024de1c414d00b262bdf4..9a6aceb5b351bf8751226eb452afc3e2895a8df3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2001-05-05  Tom Tromey  <tromey@redhat.com>
 
+       * tests/Makefile.am (XFAIL_TESTS): Removed man.test.
+       * mans.am (install-man%SECTION%): Handle dist_ and nodist_
+       prefixes.
+       (uninstall-man%SECTION%): Likewise.
+       * automake.in (handle_man_pages): Handle dist_ and nodist_
+       prefixes.
+
        * automake.texi (Future): Removed.
        (Depth): Removed.
        (Hello): Don't mention `deep'.
index 6c857dd1de85c2b7442c9b70f52e3d5562ca0cef..f30157aa20b01cf0e6d0ac624e3acbaec3ba6755 100755 (executable)
@@ -2838,26 +2838,37 @@ sub handle_man_pages
     # "standard" sections, and then looking for any additional
     # sections used in man_MANS.
     my (%sections, %vlist);
-    # Add more sections as needed.
-    foreach my $section ('0'..'9', 'n', 'l')
+    # We handle nodist_ for uniformity.  man pages aren't distributed
+    # by default so it isn't actually very important.
+    foreach my $pfx ('', 'dist_', 'nodist_')
     {
-       if (&variable_defined ('man' . $section . '_MANS'))
+       # Add more sections as needed.
+       foreach my $section ('0'..'9', 'n', 'l')
        {
-           $sections{$section} = 1;
-           $vlist{'$(man' . $section . '_MANS)'} = 1;
+           if (&variable_defined ($pfx . 'man' . $section . '_MANS'))
+           {
+               $sections{$section} = 1;
+               $vlist{'$(' . $pfx . 'man' . $section . '_MANS)'} = 1;
+
+               &push_dist_common ('$(' . $pfx . 'man' . $section . '_MANS)')
+                   if $pfx eq 'dist_';
+           }
        }
-    }
 
-    if (&variable_defined ('man_MANS'))
-    {
-       $vlist{'$(man_MANS)'} = 1;
-       foreach (&variable_value_as_list ('man_MANS', 'all'))
+       if (&variable_defined ($pfx . 'man_MANS'))
        {
-           # A page like `foo.1c' goes into man1dir.
-           if (/\.([0-9a-z])([a-z]*)$/)
+           $vlist{'$(' . $pfx . 'man_MANS)'} = 1;
+           foreach (&variable_value_as_list ($pfx . 'man_MANS', 'all'))
            {
-               $sections{$1} = 1;
+               # A page like `foo.1c' goes into man1dir.
+               if (/\.([0-9a-z])([a-z]*)$/)
+               {
+                   $sections{$1} = 1;
+               }
            }
+
+           &push_dist_common ('$(' . $pfx . 'man_MANS)')
+               if $pfx eq 'dist_';
        }
     }
 
@@ -2867,7 +2878,7 @@ sub handle_man_pages
     # Sort sections so output is deterministic.
     foreach my $section (sort keys %sections)
     {
-       $output_rules .= &file_contents ('mans', ('SECTION', $section));
+       $output_rules .= &file_contents ('mans', ('SECTION' => $section));
     }
 
     $output_vars .= &file_contents ('mans-vars',
index 2566953e9fc355a8f4364891cb108b7c39bad071..dfc3fbb3ea7391747fb259a8272ed0ed6fc5f082 100644 (file)
@@ -32,10 +32,10 @@ man%SECTION%dir = $(mandir)/man%SECTION%
 install-man%SECTION%: $(man%SECTION%_MANS) $(man_MANS)
        @$(NORMAL_INSTALL)
        $(mkinstalldirs) $(DESTDIR)$(man%SECTION%dir)
-       @list='$(man%SECTION%_MANS)'; \
+       @list='$(man%SECTION%_MANS) $(dist_man%SECTION%_MANS) $(nodist_man%SECTION%_MANS)'; \
 ## Extract all items from man_MANS that should go in this section.
 ## This must be done dynamically to support conditionals.
-       l2='$(man_MANS)'; for i in $$l2; do \
+       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; for i in $$l2; do \
          case "$$i" in \
 ## Have to accept files like `foo.1c'.
            *.%SECTION%*) list="$$list $$i" ;; \
@@ -67,9 +67,10 @@ install-man%SECTION%: $(man%SECTION%_MANS) $(man_MANS)
 uninstall-man%SECTION%:
        @$(NORMAL_UNINSTALL)
        @list='$(man%SECTION%_MANS)'; \
+       @list='$(man%SECTION%_MANS) $(dist_man%SECTION%_MANS) $(nodist_man%SECTION%_MANS)'; \
 ## Extract all items from man_MANS that should go in this section.
 ## This must be done dynamically to support conditionals.
-       l2='$(man_MANS)'; for i in $$l2; do \
+       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; for i in $$l2; do \
          case "$$i" in \
 ## Have to accept files like `foo.1c'.
            *.%SECTION%*) list="$$list $$i" ;; \
diff --git a/mans.am b/mans.am
index 2566953e9fc355a8f4364891cb108b7c39bad071..dfc3fbb3ea7391747fb259a8272ed0ed6fc5f082 100644 (file)
--- a/mans.am
+++ b/mans.am
@@ -32,10 +32,10 @@ man%SECTION%dir = $(mandir)/man%SECTION%
 install-man%SECTION%: $(man%SECTION%_MANS) $(man_MANS)
        @$(NORMAL_INSTALL)
        $(mkinstalldirs) $(DESTDIR)$(man%SECTION%dir)
-       @list='$(man%SECTION%_MANS)'; \
+       @list='$(man%SECTION%_MANS) $(dist_man%SECTION%_MANS) $(nodist_man%SECTION%_MANS)'; \
 ## Extract all items from man_MANS that should go in this section.
 ## This must be done dynamically to support conditionals.
-       l2='$(man_MANS)'; for i in $$l2; do \
+       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; for i in $$l2; do \
          case "$$i" in \
 ## Have to accept files like `foo.1c'.
            *.%SECTION%*) list="$$list $$i" ;; \
@@ -67,9 +67,10 @@ install-man%SECTION%: $(man%SECTION%_MANS) $(man_MANS)
 uninstall-man%SECTION%:
        @$(NORMAL_UNINSTALL)
        @list='$(man%SECTION%_MANS)'; \
+       @list='$(man%SECTION%_MANS) $(dist_man%SECTION%_MANS) $(nodist_man%SECTION%_MANS)'; \
 ## Extract all items from man_MANS that should go in this section.
 ## This must be done dynamically to support conditionals.
-       l2='$(man_MANS)'; for i in $$l2; do \
+       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; for i in $$l2; do \
          case "$$i" in \
 ## Have to accept files like `foo.1c'.
            *.%SECTION%*) list="$$list $$i" ;; \
index e07bb33bc5a732a05e2c426c8e3108d66bc12715..1aa594882a22aa412c2d67d8571238d3fdc6bc3b 100644 (file)
@@ -2,7 +2,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test
+XFAIL_TESTS = objc.test subobj2.test yaccvpath.test
 
 TESTS =        \
 acinclude.test \
index 225c7c6e648937c170f52ade1d43410c4b9b91be..2da55d08368b292fec075dc9ca83d06f2cd08e03 100644 (file)
@@ -75,7 +75,7 @@ install_sh = @install_sh@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test
+XFAIL_TESTS = objc.test subobj2.test yaccvpath.test
 
 TESTS = \
 acinclude.test \
This page took 0.055548 seconds and 5 git commands to generate.