Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn26/stand Replace the "machine" logic with some...



details:   https://anonhg.NetBSD.org/src/rev/f465f61986a3
branches:  trunk
changeset: 526484:f465f61986a3
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat May 04 12:25:00 2002 +0000

description:
Replace the "machine" logic with something stolen from
i386/stand/Makefile.booters.  This might make builds with a read-only
source tree happier.

diffstat:

 sys/arch/acorn26/stand/Makefile.buildboot |  17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 274fc2212903 -r f465f61986a3 sys/arch/acorn26/stand/Makefile.buildboot
--- a/sys/arch/acorn26/stand/Makefile.buildboot Sat May 04 10:31:45 2002 +0000
+++ b/sys/arch/acorn26/stand/Makefile.buildboot Sat May 04 12:25:00 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.buildboot,v 1.1 2002/03/24 15:47:24 bjh21 Exp $
+#      $NetBSD: Makefile.buildboot,v 1.2 2002/05/04 12:25:00 bjh21 Exp $
 
 S?=    ${.CURDIR}/../../../..
 
@@ -63,11 +63,18 @@
 CLEANFILES+=   ${PROG},${RISCOSTYPE}
 FILES+=                ${PROG},${RISCOSTYPE}
 
-.if !make(obj)
-.BEGIN:
-       @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
+.if !make(obj) && !make(clean) && !make(cleandir)
+.BEGIN: machine
 .NOPATH: machine
-CLEANFILES+= machine
 .endif
 
+realdepend realall: machine
+CLEANFILES+= machine
+
+machine::
+       -rm -f $@
+       ln -s $S/arch/acorn26/include $@
+
+${OBJS}: machine
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index