1# -*-perl-*- 2 3$description = "Test the value function."; 4 5$details = "This is a test of the value function in GNU make. 6This function will evaluate to the value of the named variable with no 7further expansion performed on it.\n"; 8 9open(MAKEFILE,"> $makefile"); 10 11print MAKEFILE <<'EOF'; 12export FOO = foo 13 14recurse = FOO = $FOO 15static := FOO = $(value FOO) 16 17all: ; @echo $(recurse) $(value recurse) $(static) $(value static) 18EOF 19 20close(MAKEFILE); 21 22&run_make_with_options($makefile, "", &get_logfile); 23 24# Create the answer to what should be produced by this Makefile 25$answer = "FOO = OO FOO = foo FOO = foo FOO = foo\n"; 26 27 28&compare_output($answer,&get_logfile(1)); 29 301; 31