Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/stand Rationalize the machine-links creatio...



details:   https://anonhg.NetBSD.org/src/rev/2462b269b238
branches:  trunk
changeset: 555426:2462b269b238
user:      sekiya <sekiya%NetBSD.org@localhost>
date:      Mon Nov 17 09:32:58 2003 +0000

description:
Rationalize the machine-links creation mechanism.

diffstat:

 sys/arch/sgimips/stand/Makefile.booters |  23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diffs (44 lines):

diff -r da9550410be1 -r 2462b269b238 sys/arch/sgimips/stand/Makefile.booters
--- a/sys/arch/sgimips/stand/Makefile.booters   Mon Nov 17 05:42:58 2003 +0000
+++ b/sys/arch/sgimips/stand/Makefile.booters   Mon Nov 17 09:32:58 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.booters,v 1.11 2003/11/11 06:47:00 sekiya Exp $
+# $NetBSD: Makefile.booters,v 1.12 2003/11/17 09:32:58 sekiya Exp $
 
 .include <bsd.sys.mk>          # for HOST_SH
 
@@ -13,17 +13,7 @@
 LIBCRTBEGIN=
 LIBCRTEND=
 
-.PHONY: machine-links
-beforedepend: machine-links
-# ${MACHINE} then ${MACHINE_ARCH}
-machine-links:
-       -rm -f machine && \
-           ln -s $S/arch/${MACHINE}/include machine
-       -rm -f mips && \
-           ln -s $S/arch/mips/include mips
-CLEANFILES+= machine mips
-
-realall: machine-links ${PROG}
+realall: ${PROG}
 
 .PATH:         ${.CURDIR}/../common
 AFLAGS+=       -D_LOCORE -D_KERNEL -mno-abicalls
@@ -75,6 +65,15 @@
 .include "${S}/lib/libsa/Makefile.inc"
 LIBSA=         ${SALIB}
 
+.if !make(obj) && !make(clean) && !make(cleandir)
+.BEGIN:
+       @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
+       @([ -h mips ] || ln -s ${S}/arch/mips/include mips)
+.NOPATH: machine mips
+.endif
+CLEANFILES+= machine mips
+
+
 LIBS=          ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index