=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.39 retrieving revision 1.44 diff -u -r1.39 -r1.44 --- src/Makefile 1998/08/28 22:46:02 1.39 +++ src/Makefile 1999/01/08 00:26:59 1.44 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.39 1998/08/28 22:46:02 mickey Exp $ +# $OpenBSD: Makefile,v 1.44 1999/01/08 00:26:59 millert Exp $ # # For more information on building in tricky environments, please see @@ -17,10 +17,14 @@ # well as populate the /usr/obj properly with directories for the # objects. # -# 3) If you are reasonably sure that things will compile OK, use the +# 3) It is strongly recommended that you build and install a new kernel +# before rebuilding your system. Some of the new programs may use new +# functionality or depend on API changes that your old kernel doesn't have. +# +# 4) If you are reasonably sure that things will compile OK, use the # "make build" target supplied here. Good luck. # -# 4) If you want to setup a cross-build environment, there is a "cross-tools" +# 5) If you want to setup a cross-build environment, there is a "cross-tools" # target available which upon completion of "make TARGET= cross-tools" # (where is one of the names in the /sys/arch directory) will produce # a set of compilation tools along with the includes in the /usr/cross/ @@ -57,7 +61,7 @@ beforeinstall: .ifndef DESTDIR - (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) + (cd ${.CURDIR}/etc && ${MAKE} DESTDIR= distrib-dirs) .else (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) .endif @@ -72,11 +76,13 @@ .ifdef GLOBAL_AUTOCONF_CACHE rm -f ${GLOBAL_AUTOCONF_CACHE} .endif - (cd ${.CURDIR}/share/mk && ${MAKE} install) - (cd ${.CURDIR}/include; ${MAKE} includes) - ${MAKE} cleandir - (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) - (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) + (cd ${.CURDIR}/share/mk && ${SUDO} ${MAKE} install) + (cd ${.CURDIR}/include; ${SUDO} ${MAKE} includes) + ${SUDO} ${MAKE} cleandir + (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && \ + ${SUDO} ${MAKE} install) + (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \ + ${SUDO} ${MAKE} install) .if (${MACHINE_ARCH} == "mips") ldconfig .endif @@ -86,7 +92,7 @@ .if (${MACHINE_ARCH} == "mips") ldconfig .endif - ${MAKE} depend && ${MAKE} && ${MAKE} install + ${MAKE} depend && ${MAKE} && ${SUDO} ${MAKE} install .if !defined(TARGET) cross-tools: