Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/config Output a dependency on `newvers' for *every*...



details:   https://anonhg.NetBSD.org/src/rev/12634a91c730
branches:  trunk
changeset: 467870:12634a91c730
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Mar 30 12:36:50 1999 +0000

description:
Output a dependency on `newvers' for *every* kernel.  It only gets run at most
once per make(1) invocation anyway, and not doing this screwed up parallel
makes.

diffstat:

 usr.sbin/config/mkmakefile.c |  13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diffs (38 lines):

diff -r 8cd9423c80e7 -r 12634a91c730 usr.sbin/config/mkmakefile.c
--- a/usr.sbin/config/mkmakefile.c      Tue Mar 30 12:01:18 1999 +0000
+++ b/usr.sbin/config/mkmakefile.c      Tue Mar 30 12:36:50 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkmakefile.c,v 1.37 1998/06/30 03:30:56 jonathan Exp $ */
+/*     $NetBSD: mkmakefile.c,v 1.38 1999/03/30 12:36:50 mycroft Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -387,7 +387,6 @@
 {
        struct config *cf;
        const char *nm, *swname;
-       int first;
 
        if (fputs("all:", fp) < 0)
                return (1);
@@ -397,17 +396,13 @@
        }
        if (fputs("\n\n", fp) < 0)
                return (1);
-       for (first = 1, cf = allcf; cf != NULL; cf = cf->cf_next) {
+       for (cf = allcf; cf != NULL; cf = cf->cf_next) {
                nm = cf->cf_name;
                swname =
                    cf->cf_root != NULL ? cf->cf_name : "generic";
-               if (fprintf(fp, "%s: ${SYSTEM_DEP} swap%s.o", nm, swname) < 0)
+               if (fprintf(fp, "%s: ${SYSTEM_DEP} swap%s.o newvers", nm,
+                   swname) < 0)
                        return (1);
-               if (first) {
-                       if (fputs(" newvers", fp) < 0)
-                               return (1);
-                       first = 0;
-               }
                if (fprintf(fp, "\n\
 \t${SYSTEM_LD_HEAD}\n\
 \t${SYSTEM_LD} swap%s.o\n\



Home | Main Index | Thread Index | Old Index