]> sourceware.org Git - automake.git/commitdiff
(handle_footer): Don't define SOURCES or OBJECTS if empty
authorTom Tromey <tromey@redhat.com>
Mon, 27 Nov 1995 19:39:33 +0000 (19:39 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 27 Nov 1995 19:39:33 +0000 (19:39 +0000)
automake.in

index 6e56bd9e059f40ee9bcfb8c92c416c96cc9e52fe..7d3e23abc0568c4097b21d35c4c8db4fc52679f9 100755 (executable)
@@ -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)
This page took 0.029052 seconds and 5 git commands to generate.