Source-Changes-HG archive

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

[src/trunk]: src/share/mk make(1) specifies, regarding :: targets:



details:   https://anonhg.NetBSD.org/src/rev/2e9cc1b59c2b
branches:  trunk
changeset: 526291:2e9cc1b59c2b
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Tue Apr 30 14:29:01 2002 +0000

description:
make(1) specifies, regarding :: targets:
        Sources for a target do not accumulate over dependency lines
        when this operator is used.

An unstated implication of this is that when parallel builds are done,
each separate instance of the target can be scheduled independantly.
As a result, the linksinstall target with commands could be executed
too early during a parallel build since they didn't actually have a
dependancy on "realinstall".

To fix this, correct the linksinstall:: realinstall dependancy by
eliminating the command-less linksinstall target, and moving the
dependancy to the other linksinstall target.

diffstat:

 share/mk/bsd.links.mk |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 7439a5939a52 -r 2e9cc1b59c2b share/mk/bsd.links.mk
--- a/share/mk/bsd.links.mk     Tue Apr 30 14:24:33 2002 +0000
+++ b/share/mk/bsd.links.mk     Tue Apr 30 14:29:01 2002 +0000
@@ -1,16 +1,15 @@
-#      $NetBSD: bsd.links.mk,v 1.18 2002/03/21 12:59:56 pk Exp $
+#      $NetBSD: bsd.links.mk,v 1.19 2002/04/30 14:29:01 sommerfeld Exp $
 
 ##### Basic targets
 .PHONY:                linksinstall
 install:       linksinstall
-linksinstall:: realinstall
 
 ##### Default values
 LINKS?=
 SYMLINKS?=
 
 ##### Install rules
-linksinstall::
+linksinstall:: realinstall
 .if !empty(SYMLINKS)
        @(set ${SYMLINKS}; \
         while test $$# -ge 2; do \



Home | Main Index | Thread Index | Old Index