=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.114 retrieving revision 1.120 diff -u -r1.114 -r1.120 --- src/Makefile 2005/12/02 01:17:20 1.114 +++ src/Makefile 2013/07/23 22:37:02 1.120 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.114 2005/12/02 01:17:20 deraadt Exp $ +# $OpenBSD: Makefile,v 1.120 2013/07/23 22:37:02 todd Exp $ # # For more information on building in tricky environments, please see @@ -25,8 +25,9 @@ # 4) If you are reasonably sure that things will compile OK, use the # "make build" target supplied here. Good luck. # -# 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" +# 5) If you want to setup a cross-build environment, there is a "cross-gcc" +# target available which upon completion of: +# make -f Makefile.cross TARGET= cross-gcc" # (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/ # directory. The "cross-distrib" target will build cross-tools as well as @@ -41,24 +42,27 @@ SUBDIR+= sys .if (${KERBEROS5:L} == "yes") -SUBDIR+= kerberosV +SUBDIR+=kerberosV/tools +SUBDIR+=kerberosV/libexec +SUBDIR+=kerberosV/usr.bin +SUBDIR+=kerberosV/usr.sbin +SUBDIR+=kerberosV/doc .endif .if make(clean) || make(cleandir) || make(obj) SUBDIR+= distrib regress .endif -.if exists(regress) regression-tests: @echo Running regression tests... @cd ${.CURDIR}/regress && ${MAKE} depend && exec ${MAKE} regress -.endif includes: cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes beforeinstall: cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs + cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} install-mtree cd ${.CURDIR}/include && exec ${MAKE} includes afterinstall: @@ -66,7 +70,12 @@ cd ${.CURDIR}/share/man && exec ${MAKE} makedb .endif +.ifdef DESTDIR build: + @echo cannot build with DESTDIR set + @false +.else +build: .ifdef GLOBAL_AUTOCONF_CACHE cp /dev/null ${GLOBAL_AUTOCONF_CACHE} .endif @@ -78,6 +87,7 @@ cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \ NOMAN=1 exec ${SUDO} ${MAKE} install ${MAKE} depend && ${MAKE} && exec ${SUDO} ${MAKE} install +.endif CROSS_TARGETS=cross-env cross-dirs cross-obj cross-includes cross-binutils \ cross-gcc cross-tools cross-lib cross-bin cross-etc-root-var \