Source-Changes-HG archive

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

[src/trunk]: src/share/mk Only attempt to make the machine links for targets ...



details:   https://anonhg.NetBSD.org/src/rev/d8919b9d5d8a
branches:  trunk
changeset: 525296:d8919b9d5d8a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Apr 09 17:14:38 2002 +0000

description:
Only attempt to make the machine links for targets 'depend', 'all',
  'dependall'.
This fixes misc/16227 by Stoned Elipot.

XXX this solution is not ideal

diffstat:

 share/mk/bsd.kmod.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 624f8fa4b39c -r d8919b9d5d8a share/mk/bsd.kmod.mk
--- a/share/mk/bsd.kmod.mk      Tue Apr 09 16:46:16 2002 +0000
+++ b/share/mk/bsd.kmod.mk      Tue Apr 09 17:14:38 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmod.mk,v 1.52 2002/04/06 17:49:02 jdolecek Exp $
+#      $NetBSD: bsd.kmod.mk,v 1.53 2002/04/09 17:14:38 jdolecek Exp $
 
 .include <bsd.init.mk>
 
@@ -34,6 +34,7 @@
 
 # XXX.  This should be done a better way.  It's @'d to reduce visual spew.
 # XXX   .BEGIN is used to make sure the links are done before anything else.
+.if make(depend) || make(all) || make(dependall)
 .BEGIN:
        @rm -f machine && \
            ln -s $S/arch/${MACHINE}/include machine
@@ -44,6 +45,7 @@
        @rm -f sun68k && \
            ln -s $S/arch/sun68k/include sun68k
 .endif
+.endif
 
 ##### Install rules
 .if !target(kmodinstall)



Home | Main Index | Thread Index | Old Index