Diff: Fix missing dependency in generated .dep files

Warwick Harvey wharvey at cs.monash.edu.au
Wed Mar 17 18:12:50 AEDT 1999


I wrote:
> I'll commit this once I've tested it.

Good thing I tested it (not that it *broke* anything ;-).  Here's a 
corrected diff --- which I am now testing.  :-)

(I had it depending on `$(foo)' rather than `$(foo.init_cs)'...  Sigh.)

Warwick

Index: compiler/modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.96
diff -u -r1.96 modules.m
--- modules.m   1999/02/09 00:27:44     1.96
+++ modules.m   1999/03/17 07:06:39
@@ -2499,7 +2499,8 @@
        io__write_string(DepStream, "\n"),
 
        io__write_strings(DepStream, [
-               InitCFileName, " : ", DepFileName, "\n",
+               InitCFileName, " : ", DepFileName, " $(", MakeVarName,
+                       ".init_cs)\n",
                "\t$(C2INIT) $(ALL_GRADEFLAGS) $(ALL_C2INITFLAGS) $(",
                        MakeVarName, ".init_cs) > ", InitCFileName, "\n\n"
        ]),





More information about the developers mailing list