Source-Changes-HG archive

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

[src/trunk]: src/share/mk The -m option is automatically propagated by make(1...



details:   https://anonhg.NetBSD.org/src/rev/625109e05f04
branches:  trunk
changeset: 515325:625109e05f04
user:      tv <tv%NetBSD.org@localhost>
date:      Sat Sep 22 05:01:26 2001 +0000

description:
The -m option is automatically propagated by make(1).  Don't add yet more
(possibly wrong) `-m' options; this will only make MAKEFLAGS bigger and
bigger with each recursion.

diffstat:

 share/mk/bsd.subdir.mk |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (35 lines):

diff -r d51f346eaa17 -r 625109e05f04 share/mk/bsd.subdir.mk
--- a/share/mk/bsd.subdir.mk    Sat Sep 22 04:15:19 2001 +0000
+++ b/share/mk/bsd.subdir.mk    Sat Sep 22 05:01:26 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.subdir.mk,v 1.43 2001/09/21 20:50:23 tv Exp $
+#      $NetBSD: bsd.subdir.mk,v 1.44 2001/09/22 05:01:26 tv Exp $
 #      @(#)bsd.subdir.mk       8.1 (Berkeley) 6/8/93
 
 .if !target(__initialized__)
@@ -18,23 +18,17 @@
 .endif
 .endfor
 
-.if defined(DESTDIR) && exists(${DESTDIR}/usr/share/mk/sys.mk)
-_M=-m ${DESTDIR}/usr/share/mk
-.else
-_M=
-.endif
-
 __recurse: .USE
        @targ=${.TARGET:C/-.*$//};dir=${.TARGET:C/^[^-]*-//};           \
        case "$$dir" in /*)                                             \
                echo "$$targ ===> $$dir";                               \
                cd "$$dir";                                             \
-               ${MAKE} ${_M} "_THISDIR_=$$dir/" $$targ;                \
+               ${MAKE} "_THISDIR_=$$dir/" $$targ;                      \
                ;;                                                      \
        *)                                                              \
                echo "$$targ ===> ${_THISDIR_}$$dir";                   \
                cd "${.CURDIR}/$$dir";                                  \
-               ${MAKE} ${_M} "_THISDIR_=${_THISDIR_}$$dir/" $$targ;    \
+               ${MAKE} "_THISDIR_=${_THISDIR_}$$dir/" $$targ;          \
                ;;                                                      \
        esac
 



Home | Main Index | Thread Index | Old Index