1$description = "The following test creates a makefile to ..."; 2 3$details = ""; 4 5open(MAKEFILE,"> $makefile"); 6 7# The Contents of the MAKEFILE ... 8 9print MAKEFILE "x = variable1\n" 10 ."variable2 := Hello\n" 11 ."y = \$(subst 1,2,\$(x))\n" 12 ."z = y\n" 13 ."a := \$(\$(\$(z)))\n" 14 ."all: \n" 15 ."\t\@echo \$(a)\n"; 16 17# END of Contents of MAKEFILE 18 19close(MAKEFILE); 20 21&run_make_with_options($makefile,"",&get_logfile); 22 23# Create the answer to what should be produced by this Makefile 24$answer = "Hello\n"; 25 26&compare_output($answer,&get_logfile(1)); 27 281; 29 30 31 32 33 34 35