Makefile revision 1.33
1#	$NetBSD: Makefile,v 1.33 1996/04/25 00:47:25 jtc Exp $
2
3.include <bsd.own.mk>			# for configuration variables.
4
5# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
6
7SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games
8SUBDIR+= gnu
9
10SUBDIR+= sys
11
12.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
13SUBDIR+= domestic
14.endif
15
16.if exists(regress)
17.ifmake !(install)
18SUBDIR+= regress
19.endif
20
21regression-tests:
22	@echo Running regression tests...
23	@(cd ${.CURDIR}/regress && ${MAKE} regress)
24.endif
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	(cd ${.CURDIR}/share/mk && ${MAKE} install)
40	${MAKE} includes
41	(cd ${.CURDIR}/include && ${MAKE} install)
42.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
43	(cd ${.CURDIR}/domestic/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 exists(domestic) && !defined(EXPORTABLE_SYSTEM)
49	# XXX should do the whole of domestic/lib
50	(cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && \
51	    ${MAKE} install)
52.endif
53	${MAKE} depend && ${MAKE} && ${MAKE} install
54
55.include <bsd.subdir.mk>
56