Makefile revision 1.35
1# $NetBSD: Makefile,v 1.35 1996/04/25 01:09:33 jtc 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 ${MAKE} includes 41 ${MAKE} cleandir 42 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 43 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 44.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 45 # XXX should do the whole of domestic/lib 46 (cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && \ 47 ${MAKE} install) 48.endif 49 ${MAKE} depend && ${MAKE} && ${MAKE} install 50 51.include <bsd.subdir.mk> 52