varnesting 624 B

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