summaryrefslogtreecommitdiffstats
path: root/scripts/mkdep.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-01-04 16:03:48 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-01-04 16:03:48 +0000
commit78c388aed2b7184182c08428db1de6c872d815f5 (patch)
tree4b2003b1b4ceb241a17faa995da8dd1004bb8e45 /scripts/mkdep.c
parenteb7a5bf93aaa4be1d7c6181100ab7639e74d67f7 (diff)
Merge with Linux 2.1.131 and more MIPS goodies.
(Did I mention that CVS is buggy ...)
Diffstat (limited to 'scripts/mkdep.c')
-rw-r--r--scripts/mkdep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/mkdep.c b/scripts/mkdep.c
index d6e9a7262..a05d2faac 100644
--- a/scripts/mkdep.c
+++ b/scripts/mkdep.c
@@ -33,7 +33,7 @@ struct path_struct {
int len;
char buffer[256-sizeof(int)];
} path_array[2] = {
- { 23, "/usr/src/linux/include/" },
+ { 0, "" },
{ 0, "" }
};
@@ -464,8 +464,11 @@ int main(int argc, char **argv)
char *hpath;
hpath = getenv("HPATH");
- if (!hpath)
- hpath = "/usr/src/linux/include";
+ if (!hpath) {
+ fputs("mkdep: HPATH not set in environment. "
+ "Don't bypass the top level Makefile.\n", stderr);
+ return 1;
+ }
len = strlen(hpath);
memcpy(path_array[0].buffer, hpath, len);
if (len && hpath[len-1] != '/')