version 1.12, 1999/12/18 21:53:33 |
version 1.13, 1999/12/18 21:58:08 |
|
|
#ifdef CLEANUP |
#ifdef CLEANUP |
if (allGNs == NULL) |
if (allGNs == NULL) |
allGNs = Lst_Init(); |
allGNs = Lst_Init(); |
Lst_AtEnd(allGNs, (ClientData) gn); |
Lst_AtEnd(allGNs, (ClientData)gn); |
#endif |
#endif |
|
|
return (gn); |
return (gn); |
|
|
if (isNew) { |
if (isNew) { |
gn = Targ_NewGN (name); |
gn = Targ_NewGN (name); |
Hash_SetValue (he, gn); |
Hash_SetValue (he, gn); |
(void) Lst_AtEnd (allTargets, (ClientData)gn); |
Lst_AtEnd(allTargets, (ClientData)gn); |
} |
} |
} else { |
} else { |
he = Hash_FindEntry (&targets, name); |
he = Hash_FindEntry (&targets, name); |
|
|
* are added to the list in the order in which they were |
* are added to the list in the order in which they were |
* encountered in the makefile. |
* encountered in the makefile. |
*/ |
*/ |
(void) Lst_AtEnd (nodes, (ClientData)gn); |
Lst_AtEnd(nodes, (ClientData)gn); |
if (gn->type & OP_DOUBLEDEP) { |
if (gn->type & OP_DOUBLEDEP) { |
(void)Lst_Concat (nodes, gn->cohorts, LST_CONCNEW); |
Lst_Concat(nodes, gn->cohorts, LST_CONCNEW); |
} |
} |
} else if (flags == TARG_NOCREATE) { |
} else if (flags == TARG_NOCREATE) { |
Error ("\"%s\" -- target unknown.", name); |
Error ("\"%s\" -- target unknown.", name); |