]> sourceware.org Git - automake.git/commitdiff
(handle_installdirs): Always make installdirs target.
authorTom Tromey <tromey@redhat.com>
Wed, 29 Nov 1995 21:27:57 +0000 (21:27 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 29 Nov 1995 21:27:57 +0000 (21:27 +0000)
automake.in

index cf97b034f7ed153a1096485b9b2adb51ca8f67a1..0540609322a92bf83fd00e0045acc6c95db871d5 100755 (executable)
@@ -798,17 +798,19 @@ sub handle_footer
 # Deal with installdirs target.
 sub handle_installdirs
 {
-    return if ($#installdirs < 0);
-
     # GNU Makefile standards recommend this.  FIXME prettyprint rule
     # here.
     $output_rules .= ("installdirs:"
                      . ($recursive_install
                         ? " installdirs-recursive\n"
-                        : "\n")
-                     . "\t\$(top_srcdir)/mkinstalldirs "
-                     . join (' ', @installdirs)
-                     . "\n\n");
+                        : "\n"));
+    if ($#installdirs >= 0)
+    {
+       $output_rules .= ("\t\$(top_srcdir)/mkinstalldirs "
+                         . join (' ', @installdirs)
+                         . "\n");
+    }
+    $output_rules .= "\n";
 }
 
 # There are several targets which need to be merged.  This is because
This page took 0.029653 seconds and 5 git commands to generate.