1 # $NetBSD: Makefile,v 1.31 1996/03/18 09:55:25 tls 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 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 .if exists(domestic) 40 (cd ${.CURDIR}/domestic/include && ${MAKE} install) 41 .endif 42 (cd ${.CURDIR}/include && ${MAKE} install) 43 (cd ${.CURDIR}/share/mk && ${MAKE} install) 44 ${MAKE} cleandir 45 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 46 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 47 .if exists(domestic) 48 (cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install) 49 .endif 50 ${MAKE} depend && ${MAKE} && ${MAKE} install 51 52 .include <bsd.subdir.mk> 53