Makefile revision 1.10
1#	$OpenBSD: Makefile,v 1.10 1996/05/18 05:37:48 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
27includes:
28	(cd ${.CURDIR}/include; ${MAKE} includes)	
29
30beforeinstall:
31.ifndef DESTDIR
32	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
33.else
34	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
35.endif
36	(cd ${.CURDIR}/include; ${MAKE} includes)
37
38afterinstall:
39.ifndef NOMAN
40	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
41.endif
42
43build:
44	(cd ${.CURDIR}/share/mk && ${MAKE} install)
45	(cd ${.CURDIR}/include; ${MAKE} includes)
46.if defined(KERBEROS)
47	(cd ${.CURDIR}/kerberosIV/include && ${MAKE} install)
48.endif
49	${MAKE} cleandir
50	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
51	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
52.if defined(KERBEROS)
53	(cd ${.CURDIR}/kerberosIV && ${MAKE} build)
54.endif
55	${MAKE} depend && ${MAKE} && ${MAKE} install
56
57.include <bsd.subdir.mk>
58