From: Tom Tromey Date: Wed, 29 Nov 1995 21:27:57 +0000 (+0000) Subject: (handle_installdirs): Always make installdirs target. X-Git-Tag: Release-0-25~50 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0366e63da9c6c654099c38b17d9dec8159c2b4ea;p=automake.git (handle_installdirs): Always make installdirs target. --- diff --git a/automake.in b/automake.in index cf97b034..05406093 100755 --- a/automake.in +++ b/automake.in @@ -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