Source-Changes-HG archive

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

[src/trunk]: src/lib/libkern remove some dead rules.



details:   https://anonhg.NetBSD.org/src/rev/572e5ec90419
branches:  trunk
changeset: 789492:572e5ec90419
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Aug 20 17:41:58 2013 +0000

description:
remove some dead rules.
Use ln -sf

diffstat:

 lib/libkern/Makefile |  18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diffs (42 lines):

diff -r 3ce5eaee1093 -r 572e5ec90419 lib/libkern/Makefile
--- a/lib/libkern/Makefile      Tue Aug 20 17:36:20 2013 +0000
+++ b/lib/libkern/Makefile      Tue Aug 20 17:41:58 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2013/08/20 17:35:41 matt Exp $
+#      $NetBSD: Makefile,v 1.2 2013/08/20 17:41:58 matt Exp $
 
 WITHOUT_MAN=true  # defined
 
@@ -29,13 +29,16 @@
 .NOPATH: machine
 .endif
 
-realdepend realall: machine
+realdepend realall: machine .WAIT
 CLEANFILES+= ${MACHINE_CPU} machine
 
 machine::
-       -rm -f ${MACHINE_CPU} machine
-       ln -s ${S}/arch/${MACHINE}/include machine
-       ln -s ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
+.if ${MACHINE_CPU} == "arm"
+       ln -sf ${S}/arch/${MACHINE_CPU}/include machine
+.else
+       ln -sf ${S}/arch/${MACHINE}/include machine
+.endif
+       ln -sf ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
 
 ${OBJS}: machine
 
@@ -50,11 +53,6 @@
        @false
 .endif
 
-cleandir distclean: .WAIT cleanlibdir
-
-cleanlibdir:
-       -rm -rf lib
-
 .include <bsd.lib.mk>
 
 lib${LIB}.o:: ${OBJS}



Home | Main Index | Thread Index | Old Index