mirror of
https://github.com/mirror/make.git
synced 2025-01-21 09:41:03 +08:00
Formerly commands.c.~10~
This commit is contained in:
parent
d8f06cf21f
commit
e7930bea3a
@ -322,12 +322,17 @@ chop_commands (cmds)
|
|||||||
cmds->lines_recurse = (char *) xmalloc (nlines);
|
cmds->lines_recurse = (char *) xmalloc (nlines);
|
||||||
for (idx = 0; idx < nlines; ++idx)
|
for (idx = 0; idx < nlines; ++idx)
|
||||||
{
|
{
|
||||||
unsigned int len;
|
|
||||||
int recursive;
|
int recursive;
|
||||||
p = lines[idx];
|
p = lines[idx];
|
||||||
len = strlen (p);
|
while (isblank (*p) || *p == '-' || *p == '@')
|
||||||
|
++p;
|
||||||
|
recursive = *p == '+';
|
||||||
|
if (!recursive)
|
||||||
|
{
|
||||||
|
unsigned int len = strlen (p);
|
||||||
recursive = (sindex (p, len, "$(MAKE)", 7) != 0
|
recursive = (sindex (p, len, "$(MAKE)", 7) != 0
|
||||||
|| sindex (p, len, "${MAKE}", 7) != 0);
|
|| sindex (p, len, "${MAKE}", 7) != 0);
|
||||||
|
}
|
||||||
cmds->lines_recurse[idx] = recursive;
|
cmds->lines_recurse[idx] = recursive;
|
||||||
cmds->any_recurse |= recursive;
|
cmds->any_recurse |= recursive;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user