Lines Matching refs:gn

363 #define MESSAGE(fp, gn) \
365 (void)fprintf(fp, TARG_FMT, targPrefix, gn->name)
920 JobSaveCommand(void *cmd, void *gn)
922 cmd = Var_Subst(NULL, (char *)cmd, (GNode *)gn, FALSE);
1144 * gn the node of the file to touch
1156 Job_Touch(GNode *gn, Boolean silent)
1161 if (gn->type & (OP_JOIN|OP_USE|OP_USEBEFORE|OP_EXEC|OP_OPTIONAL|
1170 if (!silent || NoExecute(gn)) {
1171 (void)fprintf(stdout, "touch %s\n", gn->name);
1175 if (NoExecute(gn)) {
1179 if (gn->type & OP_ARCHV) {
1180 Arch_Touch(gn);
1181 } else if (gn->type & OP_LIB) {
1182 Arch_TouchLib(gn);
1184 char *file = gn->path ? gn->path : gn->name;
1219 * gn The target whose commands need verifying
1231 Job_CheckCommands(GNode *gn, void (*abortProc)(const char *, ...))
1233 if (OP_NOP(gn->type) && Lst_IsEmpty(gn->commands) &&
1234 ((gn->type & OP_LIB) == 0 || Lst_IsEmpty(gn->children))) {
1240 (gn->type & OP_SPECIAL) == 0) {
1245 * a .DEFAULT was given, we substitute its commands for gn's
1248 * gn also inherits any attributes or sources attached to
1251 Make_HandleUse(DEFAULT, gn);
1252 Var_Set(IMPSRC, Var_Value(TARGET, gn, &p1), gn, 0);
1255 } else if (Dir_MTime(gn, 0) == 0 && (gn->type & OP_SPECIAL) == 0) {
1265 if (gn->flags & FROM_DEPEND) {
1266 if (!Job_RunTarget(".STALE", gn->fname))
1268 progname, gn->fname, gn->lineno, makeDependfile,
1269 gn->name);
1273 if (gn->type & OP_OPTIONAL) {
1275 msg, gn->name);
1279 msg, gn->name);
1283 (*abortProc)("%s%s %s. Stop", progname, msg, gn->name);
1516 * by the graph node gn.
1519 * gn target to create
1539 JobStart(GNode *gn, int flags)
1556 if (gn->type & OP_SPECIAL)
1559 job->node = gn;
1568 if (Targ_Ignore(gn)) {
1571 if (Targ_Silent(gn)) {
1580 cmdsOK = Job_CheckCommands(gn, Error);
1589 if (((gn->type & OP_MAKE) && !(noRecursiveExecute)) ||
1603 PrintOnError(gn, NULL); /* provide some clue */
1626 meta_job_start(job, gn);
1627 if (Targ_Silent(gn)) { /* might have changed */
1636 Lst_ForEach(gn->commands, JobPrintCommand, job);
1647 } else if (NoExecute(gn)) {
1652 if (lastNode != gn) {
1653 MESSAGE(stdout, gn);
1654 lastNode = gn;
1663 Lst_ForEach(gn->commands, JobPrintCommand, job);
1677 Job_Touch(gn, job->flags&JOB_SILENT);
2143 Job_Make(GNode *gn)
2145 (void)JobStart(gn, 0);
2590 GNode *gn;
2600 gn = job->node;
2602 if ((gn->type & (OP_JOIN|OP_PHONY)) == 0 && !Targ_Precious(gn)) {
2603 char *file = (gn->path == NULL ? gn->name : gn->path);
3008 GNode *gn = Targ_FindNode(target, TARG_NOCREATE);
3010 if (gn == NULL)
3014 Var_Set(ALLSRC, fname, gn, 0);
3016 JobRun(gn);
3017 if (gn->made == ERROR) {
3018 PrintOnError(gn, "\n\nStop.");