diff options
-rw-r--r-- | miscutils/make.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index 1e7b77ddb..bd3b23f21 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
@@ -2083,11 +2083,11 @@ input(FILE *fd, int ilevel) | |||
2083 | make(newname(p), 1); | 2083 | make(newname(p), 1); |
2084 | opts &= ~OPT_include; | 2084 | opts &= ~OPT_include; |
2085 | } | 2085 | } |
2086 | makefile = p; | ||
2086 | if ((ifd = fopen(p, "r")) == NULL) { | 2087 | if ((ifd = fopen(p, "r")) == NULL) { |
2087 | if (!minus) | 2088 | if (!minus) |
2088 | error("can't open include file '%s'", p); | 2089 | error("can't open include file '%s'", p); |
2089 | } else { | 2090 | } else { |
2090 | makefile = p; | ||
2091 | input(ifd, ilevel + 1); | 2091 | input(ifd, ilevel + 1); |
2092 | fclose(ifd); | 2092 | fclose(ifd); |
2093 | } | 2093 | } |