(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 cf97b03..0540609 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