(read_makefile): Write no error msg for -include file.
authorRoland McGrath <roland@redhat.com>
Wed, 20 Apr 1994 22:42:32 +0000 (22:42 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 20 Apr 1994 22:42:32 +0000 (22:42 +0000)
read.c

diff --git a/read.c b/read.c
index b101d38..e232d99 100644 (file)
--- 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));
            }