From 46f8a900850d1971b0e831c71dc6b696f6826d96 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 27 Nov 1995 19:39:33 +0000 Subject: [PATCH] (handle_footer): Don't define SOURCES or OBJECTS if empty --- automake.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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) -- 2.43.5