summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-07-02 22:48:17 +0000
committerRoland McGrath <roland@redhat.com>1992-07-02 22:48:17 +0000
commit50cd0d5a12b3d6b3dae5034bb2952073f768f350 (patch)
tree7566db19720977b3ece1b5150eb0005d1b4c748d /main.c
parent8d6f98b83d5ae7967b27d6efa81770e70a8626ea (diff)
downloadgunmake-50cd0d5a12b3d6b3dae5034bb2952073f768f350.tar.gz
Formerly main.c.~50~
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index a60b89b..04eb097 100644
--- a/main.c
+++ b/main.c
@@ -577,6 +577,9 @@ main (argc, argv, envp)
makelevel = 0;
}
+ /* Always do -w in sub-makes and under -C. */
+ print_directory_flag |= directories != 0 || makelevel > 0;
+
/* Construct the list of include directories to search. */
construct_include_path (include_directories == 0 ? (char **) 0