mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Fix wildcard srcs for phony targets
This commit is contained in:
parent
2c6a3af9ab
commit
4fc82fe44c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250773
@ -2058,6 +2058,10 @@ SuffFindNormalDeps(GNode *gn, Lst slst)
|
||||
* children, then look for any overriding transformations they imply.
|
||||
* Should we find one, we discard the one we found before.
|
||||
*/
|
||||
bottom = NULL;
|
||||
targ = NULL;
|
||||
|
||||
if (!(gn->type & OP_PHONY)) {
|
||||
|
||||
while (ln != NULL) {
|
||||
/*
|
||||
@ -2171,6 +2175,7 @@ SuffFindNormalDeps(GNode *gn, Lst slst)
|
||||
for (targ = bottom; targ->parent != NULL; targ = targ->parent)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Var_Set(TARGET, gn->path ? gn->path : gn->name, gn, 0);
|
||||
|
||||
@ -2419,12 +2424,7 @@ SuffFindDeps(GNode *gn, Lst slst)
|
||||
*/
|
||||
Var_Set(TARGET, gn->path ? gn->path : gn->name, gn, 0);
|
||||
Var_Set(PREFIX, gn->name, gn, 0);
|
||||
if (gn->type & OP_PHONY) {
|
||||
/*
|
||||
* If this is a .PHONY target, we do not apply suffix rules.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
if (DEBUG(SUFF)) {
|
||||
fprintf(debug_file, "SuffFindDeps (%s)\n", gn->name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user