1 # $NetBSD: Makefile,v 1.33 1996/04/25 00:47:25 jtc Exp $ 2 3 .include <bsd.own.mk> # for configuration variables. 4 5 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 6 7 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games 8 SUBDIR+= gnu 9 10 SUBDIR+= sys 11 12 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 13 SUBDIR+= domestic 14 .endif 15 16 .if exists(regress) 17 .ifmake !(install) 18 SUBDIR+= regress 19 .endif 20 21 regression-tests: 22 @echo Running regression tests... 23 @(cd ${.CURDIR}/regress && ${MAKE} regress) 24 .endif 25 26 beforeinstall: 27 .ifndef DESTDIR 28 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 29 .else 30 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 31 .endif 32 33 afterinstall: 34 .ifndef NOMAN 35 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 36 .endif 37 38 build: 39 (cd ${.CURDIR}/share/mk && ${MAKE} install) 40 ${MAKE} includes 41 (cd ${.CURDIR}/include && ${MAKE} install) 42 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 43 (cd ${.CURDIR}/domestic/include && ${MAKE} install) 44 .endif 45 ${MAKE} cleandir 46 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 47 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 48 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 49 # XXX should do the whole of domestic/lib 50 (cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && \ 51 ${MAKE} install) 52 .endif 53 ${MAKE} depend && ${MAKE} && ${MAKE} install 54 55 .include <bsd.subdir.mk> 56