Source-Changes-HG archive

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

[src/trunk]: src/etc When using obj directories, the make proces cd's to the ...



details:   https://anonhg.NetBSD.org/src/rev/e503b11ea5f0
branches:  trunk
changeset: 558058:e503b11ea5f0
user:      he <he%NetBSD.org@localhost>
date:      Tue Jan 27 15:55:42 2004 +0000

description:
When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.

diffstat:

 etc/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2c222744a679 -r e503b11ea5f0 etc/Makefile
--- a/etc/Makefile      Tue Jan 27 15:45:19 2004 +0000
+++ b/etc/Makefile      Tue Jan 27 15:55:42 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.276 2004/01/27 04:19:06 lukem Exp $
+#      $NetBSD: Makefile,v 1.277 2004/01/27 15:55:42 he Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -196,7 +196,7 @@
                cat ${NETBSDSRCDIR}/sys/conf/copyright; \
                echo ; \
                echo "Build settings:"; \
-               ${MAKE} params; \
+               (cd ${.CURDIR}; ${MAKE} ${MFLAGS} params); \
        ) >${.OBJDIR}/${.TARGET}
 
 install-etc-release: .PHONY etc-release



Home | Main Index | Thread Index | Old Index