$description = "The following test creates a makefile to test putting \n"
              ."extra spaces at the end of the filename.  It also \n"
              ."tests the simple case of including another\n"
              ."makefile with 'include'.";

$details = "This test puts extra spaces at the end of the included makefile\n"
          ."name and makes sure that no errors are reported from make since\n"
          ."this is legal to do.";

$makefile2 = &get_tmpfile;

open(MAKEFILE,"> $makefile");

# The Contents of the MAKEFILE ...

print MAKEFILE "#Extra space at the end of the following file name\n";
print MAKEFILE "include $makefile2                  \n";
print MAKEFILE "all:\n";
print MAKEFILE "\t\@echo There should be no errors for this makefile.\n";

# END of Contents of MAKEFILE

close(MAKEFILE);


open(MAKEFILE,"> $makefile2");

print MAKEFILE "ANOTHER:\n";
print MAKEFILE "\t\@echo This is another included makefile\n";

close(MAKEFILE);

# Create the answer to what should be produced by this Makefile
$answer = "There should be no errors for this makefile.\n";
&run_make_with_options($makefile,"all",&get_logfile);
&compare_output($answer,&get_logfile(1));


$answer = "This is another included makefile\n";
&run_make_with_options($makefile,"ANOTHER",&get_logfile);
&compare_output($answer,&get_logfile(1));










