Makefile revision 1.13
1# $OpenBSD: Makefile,v 1.13 1996/12/13 15:45:58 deraadt Exp $ 2# $NetBSD: Makefile,v 1.25 1995/10/09 02:11:28 thorpej Exp $ 3 4.include <bsd.own.mk> # for NOMAN, if it's there. 5 6# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 7 8SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games 9SUBDIR+= gnu 10 11SUBDIR+= sys lkm 12 13.if defined(KERBEROS) 14SUBDIR+= kerberosIV 15.endif 16 17.if exists(regress) 18.ifmake !(install) 19SUBDIR+= regress 20.endif 21 22regression-tests: 23 @echo Running regression tests... 24 @(cd ${.CURDIR}/regress && ${MAKE} regress) 25.endif 26 27includes: 28 (cd ${.CURDIR}/include; ${MAKE} includes) 29 30beforeinstall: 31.ifndef DESTDIR 32 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 33.else 34 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 35.endif 36 (cd ${.CURDIR}/include; ${MAKE} includes) 37 38afterinstall: 39.ifndef NOMAN 40 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 41.endif 42 43build: 44 (cd ${.CURDIR}/share/mk && ${MAKE} install) 45 (cd ${.CURDIR}/include; ${MAKE} includes) 46 ${MAKE} cleandir 47 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 48 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 49.if (${MACHINE_ARCH} == "mips") 50 ldconfig # Fuck. 51.endif 52.if defined(KERBEROS) 53 (cd ${.CURDIR}/kerberosIV && ${MAKE} build) 54.endif 55 ${MAKE} depend && ${MAKE} && ${MAKE} install 56 57.include <bsd.subdir.mk> 58