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