Makefile revision 1.34
1#	$NetBSD: Makefile,v 1.34 1996/04/25 01:02:27 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.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
42	(cd ${.CURDIR}/domestic/include && ${MAKE} install)
43.endif
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) && !defined(EXPORTABLE_SYSTEM)
48	# XXX should do the whole of domestic/lib
49	(cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && \
50	    ${MAKE} install)
51.endif
52	${MAKE} depend && ${MAKE} && ${MAKE} install
53
54.include <bsd.subdir.mk>
55