2 $description = "The following test creates a makefile to verify
3 the ability of make to strip white space from lists of object.\n";
6 $details = "The make file is built with a list of objects that contain white space
7 These are then run through the strip command to remove it. This is then
8 verified by echoing the result.\n";
10 open(MAKEFILE,"> $makefile");
12 # The Contents of the MAKEFILE ...
14 print MAKEFILE <<'EOMAKE';
15 TEST1 := "Is this TERMINAL fun? What makes you believe is this terminal fun? JAPAN is a WONDERFUL planet -- I wonder if we will ever reach their level of COMPARATIVE SHOPPING..."
17 TEST2 := $E try this and this $E
33 @echo '$(strip $(TEST1) )'
34 @echo '$(strip $(TEST2) )'
35 @echo '$(strip $(TEST3) )'
37 space: ; @echo '$(strip ) $(strip )'
41 # END of Contents of MAKEFILE
45 &run_make_with_options($makefile,"",&get_logfile);
46 $answer = "\"Is this TERMINAL fun? What makes you believe is this terminal fun? JAPAN is a WONDERFUL planet -- I wonder if we will ever reach their level of COMPARATIVE SHOPPING...\"
48 and these test out some blank lines
50 &compare_output($answer,&get_logfile(1));
53 &run_make_with_options($makefile,"space",&get_logfile);
55 &compare_output($answer,&get_logfile(1));