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