Makefile revision 1.9
1# $OpenBSD: Makefile,v 1.9 1996/05/14 19:10:34 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 27beforeinstall: 28.ifndef DESTDIR 29 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 30.else 31 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 32.endif 33 (cd ${.CURDIR}/include; ${MAKE} includes) 34 35afterinstall: 36.ifndef NOMAN 37 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 38.endif 39 40build: 41 (cd ${.CURDIR}/share/mk && ${MAKE} install) 42 (cd ${.CURDIR}/include; ${MAKE} includes) 43.if defined(KERBEROS) 44 (cd ${.CURDIR}/kerberosIV/include && ${MAKE} install) 45.endif 46 ${MAKE} cleandir 47 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 48 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 49.if defined(KERBEROS) 50 (cd ${.CURDIR}/kerberosIV && ${MAKE} build) 51.endif 52 ${MAKE} depend && ${MAKE} && ${MAKE} install 53 54.include <bsd.subdir.mk> 55