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