]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly commands.c.~10~
authorRoland McGrath <roland@redhat.com>
Wed, 9 Sep 1992 20:20:37 +0000 (20:20 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 9 Sep 1992 20:20:37 +0000 (20:20 +0000)
commands.c

index b1bc62d90e8fe76f25e84b600e2486bfc5e56cae..21ed9d907d727299426e23eb3363f2847d7f3319 100644 (file)
@@ -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;
        }