1 # $Id: Makefile,v 1.22 1995/02/26 01:10:19 cgd Exp $ 2 3 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 4 5 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games 6 SUBDIR+= gnu 7 8 SUBDIR+= sys 9 10 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 11 SUBDIR+= domestic 12 .endif 13 14 .if exists(regress) 15 .ifmake !(install) 16 SUBDIR+= regress 17 .endif 18 19 regression-tests: 20 @echo Running regression tests... 21 @(cd ${.CURDIR}/regress && ${MAKE} regress) 22 .endif 23 24 .include <bsd.own.mk> # for NOMAN, if it's there. 25 26 afterinstall: 27 .ifndef NOMAN 28 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 29 .endif 30 31 build: 32 (cd ${.CURDIR}/include && ${MAKE} install) 33 ${MAKE} cleandir 34 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 35 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 36 .if exists(domestic) 37 (cd ${.CURDIR}/domestic/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install) 38 .endif 39 .if exists(kerberosIV) 40 (cd ${.CURDIR}/kerberosIV && ${MAKE} depend && ${MAKE} && ${MAKE} install) 41 .endif 42 ${MAKE} depend && ${MAKE} && ${MAKE} install 43 44 .include <bsd.subdir.mk> 45