1$description = "The following test creates a makefile to test comments\n" 2 ."and comment continuation to the next line using a \n" 3 ."backslash within makefiles."; 4 5$details = "To test comments within a makefile, a semi-colon was placed \n" 6 ."after a comment was started. This should not be reported as\n" 7 ."an error since it is within a comment. We then continue the \n" 8 ."comment to the next line using a backslash. To test whether\n" 9 ."the comment really continued, we place an echo command with some\n" 10 ."text on the line which should never execute since it should be \n" 11 ."within a comment\n"; 12 13open(MAKEFILE,"> $makefile"); 14 15# The Contents of the MAKEFILE ... 16 17print MAKEFILE <<\EOF; 18# Test comment vs semicolon parsing and line continuation 19target: # this ; is just a comment \ 20 @echo This is within a comment. 21 @echo There should be no errors for this makefile. 22EOF 23 24# END of Contents of MAKEFILE 25 26close(MAKEFILE); 27 28&run_make_with_options($makefile,"",&get_logfile); 29 30# Create the answer to what should be produced by this Makefile 31$answer = "There should be no errors for this makefile.\n"; 32 33# COMPARE RESULTS 34 35&compare_output($answer,&get_logfile(1)) 36