From: Tom Tromey Date: Mon, 27 Nov 1995 19:39:33 +0000 (+0000) Subject: (handle_footer): Don't define SOURCES or OBJECTS if empty X-Git-Tag: Release-0-25~127 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=46f8a900850d1971b0e831c71dc6b696f6826d96;p=automake.git (handle_footer): Don't define SOURCES or OBJECTS if empty --- diff --git a/automake.in b/automake.in index 6e56bd9e..7d3e23ab 100755 --- a/automake.in +++ b/automake.in @@ -692,8 +692,18 @@ sub handle_configure # 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)