version 1.7, 1998/12/05 00:06:28 |
version 1.8, 1999/12/06 22:28:44 |
|
|
register GNode *pgn; /* the parent node */ |
register GNode *pgn; /* the parent node */ |
register char *cname; /* the child's name */ |
register char *cname; /* the child's name */ |
register LstNode ln; /* Element in parents and iParents lists */ |
register LstNode ln; /* Element in parents and iParents lists */ |
char *p1; |
|
|
|
cname = Var_Value (TARGET, cgn, &p1); |
cname = Var_Value(TARGET, cgn); |
efree(p1); |
|
|
|
/* |
/* |
* If the child was actually made, see what its modification time is |
* If the child was actually made, see what its modification time is |
|
|
* of this node. |
* of this node. |
*/ |
*/ |
if (Lst_Open (cgn->iParents) == SUCCESS) { |
if (Lst_Open (cgn->iParents) == SUCCESS) { |
char *p1; |
char *cpref = Var_Value(PREFIX, cgn); |
char *cpref = Var_Value(PREFIX, cgn, &p1); |
|
|
|
while ((ln = Lst_Next (cgn->iParents)) != NILLNODE) { |
while ((ln = Lst_Next (cgn->iParents)) != NILLNODE) { |
pgn = (GNode *)Lst_Datum (ln); |
pgn = (GNode *)Lst_Datum (ln); |
|
|
Var_Set (PREFIX, cpref, pgn); |
Var_Set (PREFIX, cpref, pgn); |
} |
} |
} |
} |
efree(p1); |
|
Lst_Close (cgn->iParents); |
Lst_Close (cgn->iParents); |
} |
} |
} |
} |
|
|
GNode *pgn = (GNode *) pgnp; |
GNode *pgn = (GNode *) pgnp; |
if ((cgn->type & (OP_EXEC|OP_USE|OP_INVISIBLE)) == 0) { |
if ((cgn->type & (OP_EXEC|OP_USE|OP_INVISIBLE)) == 0) { |
char *child; |
char *child; |
char *p1 = NULL; |
|
|
|
if (OP_NOP(cgn->type) || |
if (OP_NOP(cgn->type) || |
(child = Var_Value(TARGET, cgn, &p1)) == NULL) { |
(child = Var_Value(TARGET, cgn)) == NULL) { |
/* |
/* |
* this node is only source; use the specific pathname for it |
* this node is only source; use the specific pathname for it |
*/ |
*/ |
|
|
*/ |
*/ |
Var_Append(OODATE, child, pgn); |
Var_Append(OODATE, child, pgn); |
} |
} |
efree(p1); |
|
} |
} |
return (0); |
return (0); |
} |
} |
|
|
Var_Set (ALLSRC, "", gn); |
Var_Set (ALLSRC, "", gn); |
} |
} |
|
|
if (gn->type & OP_JOIN) { |
if (gn->type & OP_JOIN) |
char *p1; |
Var_Set(TARGET, Var_Value(ALLSRC, gn), gn); |
Var_Set (TARGET, Var_Value (ALLSRC, gn, &p1), gn); |
|
efree(p1); |
|
} |
|
} |
} |
|
|
/*- |
/*- |