summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 7791256..17bab00 100644
--- a/main.c
+++ b/main.c
@@ -590,8 +590,9 @@ main (argc, argv, envp)
makelevel = 0;
}
- /* Always do -w in sub-makes and under -C. */
- print_directory_flag |= directories != 0 || makelevel > 0;
+ /* Except under -s, always do -w in sub-makes and under -C. */
+ if (!silent_flag && (directories != 0 || makelevel > 0))
+ print_directory_flag = 1;
/* Construct the list of include directories to search. */