summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.c b/read.c
index b101d38..e232d99 100644
--- a/read.c
+++ b/read.c
@@ -576,7 +576,8 @@ read_makefile (filename, flags)
files = next;
if (! read_makefile (name, (RM_INCLUDED | RM_NO_TILDE
- | (noerror ? RM_DONTCARE : 0))))
+ | (noerror ? RM_DONTCARE : 0)))
+ && ! noerror)
makefile_error (filename, lineno,
"%s: %s", name, strerror (errno));
}