summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-09-09 20:20:37 +0000
committerRoland McGrath <roland@redhat.com>1992-09-09 20:20:37 +0000
commite7930bea3aacadb62daf55056274ac03e1501b9e (patch)
treebe4abafb376b4eeaca44989677c2514bdd27146d
parentd8f06cf21f97a564336bc88c93dd7a8396929d2f (diff)
downloadgunmake-e7930bea3aacadb62daf55056274ac03e1501b9e.tar.gz
Formerly commands.c.~10~
-rw-r--r--commands.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index b1bc62d..21ed9d9 100644
--- a/commands.c
+++ b/commands.c
@@ -322,12 +322,17 @@ chop_commands (cmds)
cmds->lines_recurse = (char *) xmalloc (nlines);
for (idx = 0; idx < nlines; ++idx)
{
- unsigned int len;
int recursive;
p = lines[idx];
- len = strlen (p);
- recursive = (sindex (p, len, "$(MAKE)", 7) != 0
- || sindex (p, len, "${MAKE}", 7) != 0);
+ while (isblank (*p) || *p == '-' || *p == '@')
+ ++p;
+ recursive = *p == '+';
+ if (!recursive)
+ {
+ unsigned int len = strlen (p);
+ recursive = (sindex (p, len, "$(MAKE)", 7) != 0
+ || sindex (p, len, "${MAKE}", 7) != 0);
+ }
cmds->lines_recurse[idx] = recursive;
cmds->any_recurse |= recursive;
}