1#                                                                    -*-perl-*-
2
3$description = "The following tests the special target .SILENT.  By simply\n"
4              ."mentioning this as a target, it tells make not to print\n"
5              ."commands before executing them.";
6
7$details = "This test is the same as the clean test except that it should\n"
8          ."not echo its command before deleting the specified file.\n";
9
10$example = "EXAMPLE_FILE";
11
12open(MAKEFILE,"> $makefile");
13
14# The Contents of the MAKEFILE ...
15
16print MAKEFILE ".SILENT : clean\n";
17print MAKEFILE "clean: \n";
18print MAKEFILE "\t$delete_command EXAMPLE_FILE\n";
19
20# END of Contents of MAKEFILE
21
22close(MAKEFILE);
23
24&touch($example);
25
26$answer = "";
27&run_make_with_options($makefile,"clean",&get_logfile,0);
28if (-f $example) {
29  $test_passed = 0;
30}
31&compare_output($answer,&get_logfile(1));
32
331;
34
35
36
37
38
39
40
41
42
43