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