$description = "The following test creates a makefile to ";

$details = "";

open(MAKEFILE,"> $makefile");

# The Contents of the MAKEFILE ...

print MAKEFILE "foo = \$(bar) \n"
              ."bar = \${ugh} \n"
              ."ugh = Hello \n"
              ."all:;\@echo \$(foo) \n"
              ."x := foo \n"
              ."y := \$(x) bar \n"
              ."x := later \n"
              ."nullstring := \n"
              ."space := \$(nullstring) \$(nullstring) \n"
              ."next:;\@echo \$x\$(space)\$y \n";

# END of Contents of MAKEFILE

close(MAKEFILE);

# TEST #1
# -------

&run_make_with_options($makefile,"",&get_logfile);
$answer = "Hello\n";
&compare_output($answer,&get_logfile(1));

# TEST #2
# -------

&run_make_with_options($makefile,"next",&get_logfile);
$answer = "later foo bar\n";
&compare_output($answer,&get_logfile(1));


1;






