# Handle footer elements.
sub handle_footer
{
- $output_vars .= ("SOURCES = " . $contents{'SOURCES'} . "\n"
- . "OBJECTS = " . $contents{'OBJECTS'} . "\n\n");
+ if ($contents{'SOURCES'})
+ {
+ $output_vars .= "SOURCES = " . $contents{'SOURCES'} . "\n";
+ }
+ if ($contents{'OBJECTS'})
+ {
+ $output_vars .= "OBJECTS = " . $contents{'OBJECTS'} . "\n";
+ }
+ if ($contents{'SOURCES'} || $contents{'OBJECTS'})
+ {
+ $output_vars .= "\n";
+ }
$output_trailer .= ".SUFFIXES:\n";
if ($#suffixes >= 0)