Various minor updates and code cleanups.
[make.git] / tests / scripts / features / varnesting
blob15d5071149ff89ac08a62f156109337d17c4bc15
1 $description = "The following test creates a makefile to ...";
3 $details = "";
5 open(MAKEFILE,"> $makefile");
7 # The Contents of the MAKEFILE ...
9 print 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";
17 # END of Contents of MAKEFILE
19 close(MAKEFILE);
21 &run_make_with_options($makefile,"",&get_logfile);
23 # Create the answer to what should be produced by this Makefile
24 $answer = "Hello\n";
26 &compare_output($answer,&get_logfile(1));