Lines Matching refs:gn
1346 ResolveMovedDepends(GNode *gn)
1350 const char *base = str_basename(gn->name);
1351 if (base == gn->name)
1354 fullName = Dir_FindFile(base, Suff_FindPath(gn));
1359 * Put the found file in gn->path so that we give that to the compiler.
1362 * XXX: Better just reset gn->path to NULL; updating it is already done
1365 gn->path = bmake_strdup(fullName);
1366 if (!Job_RunTarget(".STALE", gn->fname))
1369 progname, gn->fname, gn->lineno,
1370 makeDependfile, gn->name, fullName);
1376 ResolveFullName(GNode *gn)
1380 fullName = gn->path;
1381 if (fullName == NULL && !(gn->type & OP_NOPATH)) {
1383 fullName = Dir_FindFile(gn->name, Suff_FindPath(gn));
1385 if (fullName == NULL && gn->flags.fromDepend &&
1386 !Lst_IsEmpty(&gn->implicitParents))
1387 fullName = ResolveMovedDepends(gn);
1390 gn->name, fullName != NULL ? fullName : "(not found)");
1394 fullName = bmake_strdup(gn->name);
1402 * Search 'gn' along 'dirSearchPath' and store its modification time in
1403 * 'gn->mtime'. If no file is found, store 0 instead.
1405 * The found file is stored in 'gn->path', unless the node already had a path.
1408 Dir_UpdateMTime(GNode *gn, bool forceRefresh)
1413 if (gn->type & OP_ARCHV) {
1414 Arch_UpdateMTime(gn);
1418 if (gn->type & OP_PHONY) {
1419 gn->mtime = 0;
1423 fullName = ResolveFullName(gn);
1426 if (gn->type & OP_MEMBER) {
1427 if (fullName != gn->path)
1429 Arch_UpdateMemberMTime(gn);
1436 if (fullName != NULL && gn->path == NULL)
1437 gn->path = fullName;
1440 gn->mtime = cst.cst_mtime;