Makefile revision 1.4
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.include <bsd.own.mk>	# for NOMAN, if it's there.
11
12.if defined(KERBEROS)
13SUBDIR+= kerberosIV
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
26#beforeinstall:
27#	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
28
29afterinstall:
30.ifndef NOMAN
31	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
32.endif
33
34build:
35	(cd ${.CURDIR}/include && ${MAKE} install)
36	${MAKE} cleandir
37	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
38	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
39.if defined(KERBEROS)
40	(cd ${.CURDIR}/kerberosIV && ${MAKE} build)
41.endif
42	${MAKE} depend && ${MAKE} && ${MAKE} install
43
44.include <bsd.subdir.mk>
45