Formerly remake.c.~50~
authorRoland McGrath <roland@redhat.com>
Fri, 17 Sep 1993 04:51:21 +0000 (04:51 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 17 Sep 1993 04:51:21 +0000 (04:51 +0000)
remake.c

index 26a253a..b149328 100644 (file)
--- a/remake.c
+++ b/remake.c
@@ -341,17 +341,15 @@ update_file_1 (file, depth)
       if (try_implicit_rule (file, depth))
        DEBUGPR ("Found an implicit rule for `%s'.\n");
       else
-       {
-         DEBUGPR ("No implicit rule found for `%s'.\n");
-         if (!file->is_target
-             && default_file != 0 && default_file->cmds != 0)
-           {
-             DEBUGPR ("Using default commands for `%s'.\n");
-             file->cmds = default_file->cmds;
-           }
-       }
+       DEBUGPR ("No implicit rule found for `%s'.\n");
       file->tried_implicit = 1;
     }
+  if (file->cmds == 0 && !file->is_target
+      && default_file != 0 && default_file->cmds != 0)
+    {
+      DEBUGPR ("Using default commands for `%s'.\n");
+      file->cmds = default_file->cmds;
+    }
 
   /* Update all non-intermediate files we depend on, if necessary,
      and see whether any of them is more recent than this file.  */