changed so that it prints a separate line for each dependancy
authorceriel <none@none>
Mon, 9 Feb 1987 15:06:09 +0000 (15:06 +0000)
committerceriel <none@none>
Mon, 9 Feb 1987 15:06:09 +0000 (15:06 +0000)
util/cmisc/mkdep.1
util/cmisc/mkdep.c

index 7c42ecd..97f389f 100644 (file)
@@ -10,9 +10,11 @@ scans the files in the argument list for C-preprocessor lines of the form
 .DS
 #include "\fIfile1\fp"
 .DE
-and produces for each file \fIarg\fR in the argument list a line of the form
+and produces for each file \fIarg\fR in the argument list lines of the form
 .DS
-\fIarg\fR: \fIfile1\fR \fIfile2\fR ...
+\fIarg\fR: \fIfile1\fR
+\fIarg\fR: \fIfile2\fR
+...
 .DE
 where \fIfile1\fR, \fIfile2\fR, etc. are filenames included by \fIarg\fR, or
 by a file included by \fIarg\fR, etc.
index d17b0b9..b4a0dfb 100644 (file)
@@ -84,12 +84,10 @@ print_namelist(nm, nlp)
        struct namelist *nlp;
 {
        if (nlp) {
-                       printf("%s:", nm);
                        while (nlp) {
-                               printf(" %s", nlp->name);
+                               printf("%s: %s\n", nm, nlp->name);
                                nlp = nlp->next;
                        }
-                       printf("\n");
        }
 }