Source-Changes-HG archive

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

[src/trunk]: src/etc Added an obj target to ensure that KERNOBJDIR exists - i...



details:   https://anonhg.NetBSD.org/src/rev/c9c8f2bfba36
branches:  trunk
changeset: 485810:c9c8f2bfba36
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sat May 06 07:52:19 2000 +0000

description:
Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc

diffstat:

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

diffs (46 lines):

diff -r 45efc2ce7ac0 -r c9c8f2bfba36 etc/Makefile
--- a/etc/Makefile      Sat May 06 07:41:59 2000 +0000
+++ b/etc/Makefile      Sat May 06 07:52:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.148 2000/05/03 11:37:16 itojun Exp $
+#      $NetBSD: Makefile,v 1.149 2000/05/06 07:52:19 sjg Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -40,7 +40,7 @@
 #      stuff for this target is found in etc.${MACHINE}/Makefile.inc.
 #    release: a synonym for `snapshot'
 
-# do this before bsd.own.mk so we get correct SRCDIR
+# do this before bsd.own.mk so we get correct KERNSRCDIR
 .include "../Makefile.inc"
 
 # For NO_SENDMAIL and INSTPRIV and CRYPTOPATH
@@ -114,6 +114,11 @@
 
 all clean cleandir depend distclean etc includes install lint:
 
+.include <bsd.kernobj.mk>
+
+obj:
+       mkdir -p ${KERNOBJDIR}
+
 .ifndef DESTDIR
 distribution distrib-dirs release snapshot:
        @echo setenv DESTDIR before doing that!
@@ -258,7 +263,6 @@
        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}/${dir}
 .endfor
 
-.include <bsd.kernobj.mk>
 
 # This target builds the GENERIC kernel (which must exist for all
 # ports) and puts it in binary/sets/kern.tgz, and also builds any
@@ -276,7 +280,6 @@
 .if !target(snap_kern)
 snap_kern:
 .ifndef KERNELS_DONE
-       mkdir -p ${KERNOBJDIR}
 .for configfile in GENERIC ${EXTRA_KERNELS} ${BUILD_KERNELS}
        cd ${KERNCONFDIR} && ${CONFIG} \
                -b ${KERNOBJDIR}/${configfile} -s ${KERNSRCDIR} ${configfile}



Home | Main Index | Thread Index | Old Index