]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly commands.c.~9~
authorRoland McGrath <roland@redhat.com>
Mon, 13 Jul 1992 21:51:47 +0000 (21:51 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 13 Jul 1992 21:51:47 +0000 (21:51 +0000)
commands.c

index 29e32fa543847919ef904b24b7f463e8ef882086..b1bc62d90e8fe76f25e84b600e2486bfc5e56cae 100644 (file)
@@ -175,7 +175,17 @@ set_file_variables (file)
        unsigned int Dlen, Flen;
 
        c = dep_name (d);
-       len = strlen (c);
+
+#ifndef        NO_ARCHIVES
+       if (ar_name (c))
+         {
+           c = index (c, '(') + 1;
+           len = strlen (c) - 1;
+         }
+       else
+#endif
+         len = strlen (c);
+
        bcopy (c, cp, len);
        cp += len;
        *cp++ = ' ';