Lines Matching refs:gn
549 SwitchOutputTo(GNode *gn) in SwitchOutputTo() argument
554 if (gn == lastNode) in SwitchOutputTo()
556 lastNode = gn; in SwitchOutputTo()
559 (void)fprintf(stdout, "%s %s ---\n", targPrefix, gn->name); in SwitchOutputTo()
621 JobDeleteTarget(GNode *gn) in JobDeleteTarget() argument
625 if (gn->type & OP_JOIN) in JobDeleteTarget()
627 if (gn->type & OP_PHONY) in JobDeleteTarget()
629 if (GNode_IsPrecious(gn)) in JobDeleteTarget()
634 file = GNode_Path(gn); in JobDeleteTarget()
1343 TouchRegular(GNode *gn) in TouchRegular() argument
1345 const char *file = GNode_Path(gn); in TouchRegular()
1383 Job_Touch(GNode *gn, bool echo) in Job_Touch() argument
1385 if (gn->type & in Job_Touch()
1395 if (echo || !GNode_ShouldExecute(gn)) { in Job_Touch()
1396 (void)fprintf(stdout, "touch %s\n", gn->name); in Job_Touch()
1400 if (!GNode_ShouldExecute(gn)) in Job_Touch()
1403 if (gn->type & OP_ARCHV) in Job_Touch()
1404 Arch_Touch(gn); in Job_Touch()
1405 else if (gn->type & OP_LIB) in Job_Touch()
1406 Arch_TouchLib(gn); in Job_Touch()
1408 TouchRegular(gn); in Job_Touch()
1425 Job_CheckCommands(GNode *gn, void (*abortProc)(const char *, ...)) in Job_CheckCommands() argument
1427 if (GNode_IsTarget(gn)) in Job_CheckCommands()
1429 if (!Lst_IsEmpty(&gn->commands)) in Job_CheckCommands()
1431 if ((gn->type & OP_LIB) && !Lst_IsEmpty(&gn->children)) in Job_CheckCommands()
1439 !(gn->type & OP_SPECIAL)) { in Job_CheckCommands()
1449 Make_HandleUse(defaultNode, gn); in Job_CheckCommands()
1450 Var_Set(gn, IMPSRC, GNode_VarTarget(gn)); in Job_CheckCommands()
1454 Dir_UpdateMTime(gn, false); in Job_CheckCommands()
1455 if (gn->mtime != 0 || (gn->type & OP_SPECIAL)) in Job_CheckCommands()
1466 if (gn->flags.fromDepend) { in Job_CheckCommands()
1467 if (!Job_RunTarget(".STALE", gn->fname)) in Job_CheckCommands()
1470 progname, gn->fname, gn->lineno, makeDependfile, in Job_CheckCommands()
1471 gn->name); in Job_CheckCommands()
1475 if (gn->type & OP_OPTIONAL) { in Job_CheckCommands()
1477 progname, gn->name, "ignored"); in Job_CheckCommands()
1484 progname, gn->name, "continuing"); in Job_CheckCommands()
1489 abortProc("don't know how to make %s. Stop", gn->name); in Job_CheckCommands()
1681 JobWriteShellCommands(Job *job, GNode *gn, bool *out_run) in JobWriteShellCommands() argument
1696 meta_job_start(job, gn); in JobWriteShellCommands()
1697 if (gn->type & OP_SILENT) /* might have changed */ in JobWriteShellCommands()
1706 Job_Make(GNode *gn) in Job_Make() argument
1721 job->node = gn; in Job_Make()
1725 job->special = (gn->type & OP_SPECIAL) != OP_NONE; in Job_Make()
1726 job->ignerr = opts.ignoreErrors || gn->type & OP_IGNORE; in Job_Make()
1727 job->echo = !(opts.silent || gn->type & OP_SILENT); in Job_Make()
1733 cmdsOK = Job_CheckCommands(gn, Error); in Job_Make()
1737 if (Lst_IsEmpty(&gn->commands)) { in Job_Make()
1742 PrintOnError(gn, "\n"); in Job_Make()
1745 } else if (((gn->type & OP_MAKE) && !opts.noRecursiveExecute) || in Job_Make()
1750 PrintOnError(gn, "\n"); in Job_Make()
1755 JobWriteShellCommands(job, gn, &run); in Job_Make()
1759 } else if (!GNode_ShouldExecute(gn)) { in Job_Make()
1760 SwitchOutputTo(gn); in Job_Make()
1767 Job_Touch(gn, job->echo); in Job_Make()
2755 GNode *gn = Targ_FindNode(target); in Job_RunTarget() local
2756 if (gn == NULL) in Job_RunTarget()
2760 Var_Set(gn, ALLSRC, fname); in Job_RunTarget()
2762 JobRun(gn); in Job_RunTarget()