extern Lst parseIncPath;
extern LIST parseIncPath;
ReadMakefile(p, q)	void *p; 	void *q;{	char *fname = p;		/* makefile to read */	extern Lst parseIncPath;	FILE *stream;	char *name, path[MAXPATHLEN + 1];	if (!strcmp(fname, "-")) {		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);			if ((stream = fopen(path, "r")) != NULL) {				fname = path;				goto found;			}		}		/* look in -I and system include directories. */		name = Dir_FindFile(fname, parseIncPath);		if (!name)			name = Dir_FindFile(fname, sysIncPath);		if (!name || !(stream = fopen(name, "r")))			return(FALSE);		fname = name;		/*		 * set the MAKEFILE variable desired by System V fans -- the		 * placement of the setting here means it gets set to the last		 * makefile specified, as it is set by SysV make.		 */found:		Var_Set("MAKEFILE", fname, VAR_GLOBAL);		Parse_File(fname, stream);		(void)fclose(stream);	}	return(TRUE);}