1*69606e3fSchristos$description = "This is part 2 in a series to test the vpath directive\n" 2*69606e3fSchristos ."It tests the three forms of the directive:\n" 3*69606e3fSchristos ." vpath pattern directive\n" 4*69606e3fSchristos ." vpath pattern (clears path associated with pattern)\n" 5*69606e3fSchristos ." vpath (clears all paths specified with vpath)\n"; 6*69606e3fSchristos 7*69606e3fSchristos$details = "This test simply adds many search paths using various vpath\n" 8*69606e3fSchristos ."directive forms and clears them afterwards. It has a simple\n" 9*69606e3fSchristos ."rule to print a message at the end to confirm that the makefile\n" 10*69606e3fSchristos ."ran with no errors.\n"; 11*69606e3fSchristos 12*69606e3fSchristosopen(MAKEFILE,"> $makefile"); 13*69606e3fSchristos 14*69606e3fSchristos# The Contents of the MAKEFILE ... 15*69606e3fSchristos 16*69606e3fSchristosprint MAKEFILE "VPATH = $workdir:$sourcedir\n"; 17*69606e3fSchristosprint MAKEFILE "vpath %.c foo\n"; 18*69606e3fSchristosprint MAKEFILE "vpath %.c $workdir\n"; 19*69606e3fSchristosprint MAKEFILE "vpath %.c $sourcedir\n"; 20*69606e3fSchristosprint MAKEFILE "vpath %.h $workdir\n"; 21*69606e3fSchristosprint MAKEFILE "vpath %.c\n"; 22*69606e3fSchristosprint MAKEFILE "vpath\n"; 23*69606e3fSchristosprint MAKEFILE "all:\n"; 24*69606e3fSchristosprint MAKEFILE "\t\@echo ALL IS WELL\n"; 25*69606e3fSchristos# END of Contents of MAKEFILE 26*69606e3fSchristos 27*69606e3fSchristosclose(MAKEFILE); 28*69606e3fSchristos 29*69606e3fSchristos&run_make_with_options($makefile,"",&get_logfile); 30*69606e3fSchristos 31*69606e3fSchristos# Create the answer to what should be produced by this Makefile 32*69606e3fSchristos$answer = "ALL IS WELL\n"; 33*69606e3fSchristos 34*69606e3fSchristos&compare_output($answer,&get_logfile(1)); 35*69606e3fSchristos 36*69606e3fSchristos1; 37*69606e3fSchristos 38*69606e3fSchristos 39*69606e3fSchristos 40*69606e3fSchristos 41*69606e3fSchristos 42*69606e3fSchristos 43*69606e3fSchristos 44*69606e3fSchristos 45*69606e3fSchristos 46