1*69606e3fSchristos# -*-perl-*- 2*69606e3fSchristos$description = "The following test creates a makefile to verify 3*69606e3fSchristosthe ability of make to strip white space from lists of object.\n"; 4*69606e3fSchristos 5*69606e3fSchristos 6*69606e3fSchristos$details = "The make file is built with a list of objects that contain white space 7*69606e3fSchristosThese are then run through the strip command to remove it. This is then 8*69606e3fSchristosverified by echoing the result.\n"; 9*69606e3fSchristos 10*69606e3fSchristosopen(MAKEFILE,"> $makefile"); 11*69606e3fSchristos 12*69606e3fSchristos# The Contents of the MAKEFILE ... 13*69606e3fSchristos 14*69606e3fSchristosprint MAKEFILE <<'EOMAKE'; 15*69606e3fSchristosTEST1 := "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..." 16*69606e3fSchristosE := 17*69606e3fSchristosTEST2 := $E try this and this $E 18*69606e3fSchristos 19*69606e3fSchristosdefine TEST3 20*69606e3fSchristos 21*69606e3fSchristosand these test out 22*69606e3fSchristos 23*69606e3fSchristos 24*69606e3fSchristossome 25*69606e3fSchristosblank lines 26*69606e3fSchristos 27*69606e3fSchristos 28*69606e3fSchristos 29*69606e3fSchristosendef 30*69606e3fSchristos 31*69606e3fSchristos.PHONY: all 32*69606e3fSchristosall: 33*69606e3fSchristos @echo '$(strip $(TEST1) )' 34*69606e3fSchristos @echo '$(strip $(TEST2) )' 35*69606e3fSchristos @echo '$(strip $(TEST3) )' 36*69606e3fSchristos 37*69606e3fSchristosspace: ; @echo '$(strip ) $(strip )' 38*69606e3fSchristos 39*69606e3fSchristosEOMAKE 40*69606e3fSchristos 41*69606e3fSchristos# END of Contents of MAKEFILE 42*69606e3fSchristos 43*69606e3fSchristosclose(MAKEFILE); 44*69606e3fSchristos 45*69606e3fSchristos&run_make_with_options($makefile,"",&get_logfile); 46*69606e3fSchristos$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...\" 47*69606e3fSchristostry this and this 48*69606e3fSchristosand these test out some blank lines 49*69606e3fSchristos"; 50*69606e3fSchristos&compare_output($answer,&get_logfile(1)); 51*69606e3fSchristos 52*69606e3fSchristos 53*69606e3fSchristos&run_make_with_options($makefile,"space",&get_logfile); 54*69606e3fSchristos$answer = " \n"; 55*69606e3fSchristos&compare_output($answer,&get_logfile(1)); 56*69606e3fSchristos 57*69606e3fSchristos1; 58