xref: /netbsd-src/Makefile (revision ce0bb6e8d2e560ecacbe865a848624f94498063b)
1#	$Id: Makefile,v 1.22 1995/02/26 01:10:19 cgd 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(regress)
15.ifmake !(install)
16SUBDIR+= regress
17.endif
18
19regression-tests:
20	@echo Running regression tests...
21	@(cd ${.CURDIR}/regress && ${MAKE} regress)
22.endif
23
24.include <bsd.own.mk>	# for NOMAN, if it's there.
25
26afterinstall:
27.ifndef NOMAN
28	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
29.endif
30
31build:
32	(cd ${.CURDIR}/include && ${MAKE} install)
33	${MAKE} cleandir
34	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
35	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
36.if exists(domestic)
37	(cd ${.CURDIR}/domestic/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install)
38.endif
39.if exists(kerberosIV)
40	(cd ${.CURDIR}/kerberosIV && ${MAKE} depend && ${MAKE} && ${MAKE} install)
41.endif
42	${MAKE} depend && ${MAKE} && ${MAKE} install
43
44.include <bsd.subdir.mk>
45