=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.2 retrieving revision 1.14 diff -u -r1.2 -r1.14 --- src/Makefile 1995/12/16 21:10:33 1.2 +++ src/Makefile 1997/02/27 20:57:52 1.14 @@ -1,17 +1,16 @@ +# $OpenBSD: Makefile,v 1.14 1997/02/27 20:57:52 briggs Exp $ # $NetBSD: Makefile,v 1.25 1995/10/09 02:11:28 thorpej Exp $ +.include # for NOMAN, if it's there. + # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games SUBDIR+= gnu -SUBDIR+= sys +SUBDIR+= sys lkm -.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) -SUBDIR+= domestic -.endif - -.if exists(kerberosIV) +.if defined(KERBEROS) SUBDIR+= kerberosIV .endif @@ -25,10 +24,16 @@ @(cd ${.CURDIR}/regress && ${MAKE} regress) .endif -.include # for NOMAN, if it's there. +includes: + (cd ${.CURDIR}/include; ${MAKE} includes) -#beforeinstall: -# (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) +beforeinstall: +.ifndef DESTDIR + (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) +.else + (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) +.endif + (cd ${.CURDIR}/include; ${MAKE} includes) afterinstall: .ifndef NOMAN @@ -36,14 +41,15 @@ .endif build: - (cd ${.CURDIR}/include && ${MAKE} install) + (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) -.if exists(domestic) - (cd ${.CURDIR}/domestic/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install) +.if (${MACHINE_ARCH} == "mips") + ldconfig .endif -.if exists(kerberosIV) +.if defined(KERBEROS) (cd ${.CURDIR}/kerberosIV && ${MAKE} build) .endif ${MAKE} depend && ${MAKE} && ${MAKE} install