# 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