Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/news68k/stand/common Make sure machine and ${MACHIN...



details:   https://anonhg.NetBSD.org/src/rev/eb3060b8f034
branches:  trunk
changeset: 555561:eb3060b8f034
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Nov 21 19:39:19 2003 +0000

description:
Make sure machine and ${MACHINE_ARCH} symlinks created before make depend.

diffstat:

 sys/arch/news68k/stand/common/Makefile |  26 ++++++++++----------------
 1 files changed, 10 insertions(+), 16 deletions(-)

diffs (50 lines):

diff -r 39c42879c989 -r eb3060b8f034 sys/arch/news68k/stand/common/Makefile
--- a/sys/arch/news68k/stand/common/Makefile    Fri Nov 21 19:26:05 2003 +0000
+++ b/sys/arch/news68k/stand/common/Makefile    Fri Nov 21 19:39:19 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2003/03/30 08:01:13 tsutsui Exp $
+#      $NetBSD: Makefile,v 1.7 2003/11/21 19:39:19 tsutsui Exp $
 
 S= ${.CURDIR}/../../../..
 
@@ -14,19 +14,15 @@
 
 CLEANFILES+= machine m68k
 
-.BEGIN: machine m68k
-.NOPATH: machine m68k
-realdepend realall: machine m68k
+.PHONY: machine-links
+beforedepend: machine-links
+machine-links:
+       -rm -f machine
+       ln -s ${S}/arch/${MACHINE}/include machine
+       -rm -f ${MACHINE_ARCH}
+       ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
 
-machine::
-       -rm -f $@
-       ln -s ${S}/arch/${MACHINE}/include $@
-
-m68k::
-       -rm -f $@
-       ln -s ${S}/arch/m68k/include $@
-
-${OBJS}: machine m68k
+.include <bsd.prog.mk>
 
 ### find out what to use for libkern
 KERN_AS= library
@@ -46,11 +42,9 @@
 
 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
 
-realall: ${LIBS}
+realall: machine-links ${LIBS}
 
 cleandir distclean: cleanlibdir
 
 cleanlibdir:
        -rm -rf lib
-
-.include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index