Home | History | Annotate | Download | only in make

Lines Matching defs:cgn

220 GNode_UpdateYoungestChild(GNode *gn, GNode *cgn)
222 if (gn->youngestChild == NULL || cgn->mtime > gn->youngestChild->mtime)
223 gn->youngestChild = cgn;
388 GNode *cgn = ln->datum;
390 /* This may also update cgn->path. */
391 Dir_UpdateMTime(cgn, false);
392 GNode_UpdateYoungestChild(pgn, cgn);
407 * cgn The source node, which is either a .USE/.USEBEFORE
412 Make_HandleUse(GNode *cgn, GNode *pgn)
417 if (!(cgn->type & (OP_USE | OP_USEBEFORE | OP_TRANSFORM))) {
419 cgn->name);
425 if ((cgn->type & (OP_USE | OP_USEBEFORE)) ||
427 if (cgn->type & OP_USEBEFORE) {
429 Lst_PrependAll(&pgn->commands, &cgn->commands);
432 Lst_AppendAll(&pgn->commands, &cgn->commands);
436 for (ln = cgn->children.first; ln != NULL; ln = ln->next) {
464 cgn->type & (unsigned)~(OP_OPMASK | OP_USE | OP_USEBEFORE | OP_TRANSFORM);
476 * cgn the child, which may be a .USE node
480 MakeHandleUse(GNode *cgn, GNode *pgn, GNodeListNode *ln)
484 unmarked = !(cgn->type & OP_MARK);
485 cgn->type |= OP_MARK;
487 if (!(cgn->type & (OP_USE | OP_USEBEFORE)))
491 Make_HandleUse(cgn, pgn);
592 UpdateImplicitParentsVars(GNode *cgn, const char *cname)
595 const char *cpref = GNode_VarPrefix(cgn);
597 for (ln = cgn->implicitParents.first; ln != NULL; ln = ln->next) {
665 Make_Update(GNode *cgn)
676 cname = GNode_VarTarget(cgn);
678 DEBUG2(MAKE, "Make_Update: %s%s\n", cgn->name, cgn->cohort_num);
685 if (cgn->made != UPTODATE)
686 mtime = Make_Recheck(cgn);
692 if ((centurion = cgn->centurion) != NULL) {
693 if (!Lst_IsEmpty(&cgn->parents))
694 Punt("%s%s: cohort has parents", cgn->name,
695 cgn->cohort_num);
701 centurion = cgn;
724 if (mtime == 0 && !(cgn->type & OP_WAIT))
740 if (!(cgn->type & (OP_EXEC | OP_USE | OP_USEBEFORE))) {
741 if (cgn->made == MADE)
743 GNode_UpdateYoungestChild(pgn, cgn);
794 cgn->name, cgn->cohort_num,
803 UpdateImplicitParentsVars(cgn, cname);
832 * cgn The child to add
837 MakeAddAllSrc(GNode *cgn, GNode *pgn)
841 if (cgn->type & OP_MARK)
843 cgn->type |= OP_MARK;
845 if (cgn->type & (OP_EXEC | OP_USE | OP_USEBEFORE | OP_INVISIBLE))
848 if (cgn->type & OP_ARCHV)
849 child = GNode_VarMember(cgn);
851 child = GNode_Path(cgn);
853 if (cgn->type & OP_JOIN)
854 allsrc = GNode_VarAllsrc(cgn);
862 if (cgn->made == MADE)
865 } else if ((pgn->mtime < cgn->mtime) ||
866 (cgn->mtime >= now && cgn->made == MADE)) {
881 * if RECHECK isn't defined, since cgn->mtime is set
1341 GNode *cgn = ln->datum;
1343 Lst_Append(&pgn->children, cgn);
1344 Lst_Append(&cgn->parents, pgn);
1371 GNode *cgn = ln->datum;
1372 if (cgn->type & OP_WAIT) {
1373 AddWaitDependency(waitNode, cgn);
1376 Lst_Append(&examine, cgn);