Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Fix problems with parallel makes.



details:   https://anonhg.NetBSD.org/src/rev/d40d0449cc99
branches:  trunk
changeset: 547215:d40d0449cc99
user:      dsl <dsl%NetBSD.org@localhost>
date:      Thu May 15 10:13:36 2003 +0000

description:
Fix problems with parallel makes.

diffstat:

 bin/sh/Makefile |  23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r a9543500c489 -r d40d0449cc99 bin/sh/Makefile
--- a/bin/sh/Makefile   Thu May 15 10:11:01 2003 +0000
+++ b/bin/sh/Makefile   Thu May 15 10:13:36 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.65 2003/05/08 13:03:19 christos Exp $
+#      $NetBSD: Makefile,v 1.66 2003/05/15 10:13:36 dsl Exp $
 #      @(#)Makefile    8.4 (Berkeley) 5/5/95
 
 .include <bsd.own.mk>
@@ -44,17 +44,32 @@
 token.h: mktokens
        ${HOST_SH} ${.ALLSRC}
 
-builtins.c builtins.h: mkbuiltins shell.h builtins.def
+builtins.h: builtins.c
+       [ -f ${.TARGET} ]
+
+builtins.c: mkbuiltins shell.h builtins.def
        ${HOST_SH} ${.ALLSRC} ${.OBJDIR}
+       [ -f builtins.h ]
+       touch builtins.h
 
 init.c: mkinit ${SHSRCS}
        ./${.ALLSRC}
 
-nodes.c nodes.h: mknodes nodetypes nodes.c.pat
+nodes.h: nodes.c
+       [ -f ${.TARGET} ]
+
+nodes.c: mknodes nodetypes nodes.c.pat
        ./${.ALLSRC}
+       [ -f nodes.h ]
+       touch nodes.h
 
-syntax.c syntax.h: mksyntax
+syntax.h: syntax.c
+       [ -f ${.TARGET} ]
+
+syntax.c: mksyntax
        ./${.ALLSRC}
+       [ -f syntax.h ]
+       touch syntax.h
 
 mkinit: mkinit.c
        ${HOST_LINK.c} -o mkinit ${.IMPSRC}



Home | Main Index | Thread Index | Old Index