Makefile revision 1.30
1#	$NetBSD: Makefile,v 1.30 1996/03/18 09:53:11 tls 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
26beforeinstall:
27.ifndef DESTDIR
28	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
29.endif
30
31afterinstall:
32.ifndef NOMAN
33	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
34.endif
35
36build:
37.if exists(domestic)
38	(cd ${.CURDIR}/domestic/include && ${MAKE} install)
39.endif
40	(cd ${.CURDIR}/include && ${MAKE} install)
41	(cd ${.CURDIR}/share/mk && ${MAKE} install)
42	${MAKE} cleandir
43	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
44	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
45.if exists(domestic)
46	(cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install)
47.endif
48	${MAKE} depend && ${MAKE} && ${MAKE} install
49
50.include <bsd.subdir.mk>
51