mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 23:43:35 +00:00
Don't preferentially execute Makefiles in ${OBJDIR} - it just causes
confusion and suffering. Tested by "make world". Submitted by: gibbs
This commit is contained in:
parent
7d85a3e836
commit
b1795946fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28828
@ -47,7 +47,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: main.c,v 1.20 1997/08/14 19:24:11 fsmp Exp $";
|
||||
"$Id: main.c,v 1.21 1997/08/25 21:35:44 fsmp Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*-
|
||||
@ -834,8 +834,6 @@ ReadMakefile(p, q)
|
||||
Parse_File("(stdin)", stdin);
|
||||
Var_Set("MAKEFILE", "", VAR_GLOBAL);
|
||||
} else {
|
||||
if ((stream = fopen(fname, "r")) != NULL)
|
||||
goto found;
|
||||
/* if we've chdir'd, rebuild the path name */
|
||||
if (curdir != objdir && *fname != '/') {
|
||||
(void)sprintf(path, "%s/%s", curdir, fname);
|
||||
@ -843,7 +841,8 @@ ReadMakefile(p, q)
|
||||
fname = path;
|
||||
goto found;
|
||||
}
|
||||
}
|
||||
} else if ((stream = fopen(fname, "r")) != NULL)
|
||||
goto found;
|
||||
/* look in -I and system include directories. */
|
||||
name = Dir_FindFile(fname, parseIncPath);
|
||||
if (!name)
|
||||
|
Loading…
Reference in New Issue
Block a user