Lines Matching refs:pgn
114 Make_TimeStamp(GNode *pgn, GNode *cgn)
117 if (cgn->mtime > pgn->cmtime) {
118 pgn->cmtime = cgn->mtime;
119 pgn->cmtime_gn = cgn;
291 Make_HandleUse(GNode *cgn, GNode *pgn)
297 if ((cgn->type & OP_USE) || Lst_IsEmpty(&pgn->commands)) {
302 Lst_Concat(&pgn->commands, &cgn->commands, LST_CONCNEW);
309 if (Lst_Member(&pgn->children, gn) == NULL) {
310 Lst_AtEnd(&pgn->children, gn);
311 Lst_AtEnd(&gn->parents, pgn);
312 pgn->unmade += 1;
316 pgn->type |= cgn->type & ~(OP_OPMASK | OP_USE | OP_TRANSFORM);
326 pgn->unmade--;
342 * The unmade field of pgn is decremented and pgn may be placed on
357 GNode *pgn; /* the parent node */
435 pgn = Lst_Datum(ln);
436 if (pgn->make) {
437 pgn->unmade -= 1;
441 pgn->childMade = TRUE;
442 Make_TimeStamp(pgn, cgn);
444 if (pgn->unmade == 0) {
449 Lst_EnQueue(&toBeMade, pgn);
450 } else if (pgn->unmade < 0) {
451 Error("Graph cycles through %s", pgn->name);
477 pgn = Lst_Datum(ln);
478 if (pgn->make) {
479 Var_Set(IMPSRC, cname, pgn);
480 Var_Set(PREFIX, cpref, pgn);
608 GNode *pgn = Lst_Datum(ln);
610 if (pgn->make && pgn->made == UNMADE) {
612 "yet.\n", pgn->name));