Makefile revision 1.22
1#	$NetBSD: Makefile,v 1.22 2001/12/11 21:17:56 tv Exp $
2
3.include <bsd.own.mk>
4
5# Dependencies in SUBDIR below ordered to maximize parallel ability.
6.if !defined(NOSUBDIR)
7SUBDIR=	mkdep .WAIT compat .WAIT \
8	binstall .WAIT \
9		crunchgen gencat lint lint2 lorder mtree rpcgen \
10		texinfo tsort makewhatis \
11	toolchain .WAIT \
12		dbsym mdsetimage \
13	yacc .WAIT \
14		groff \
15	lex .WAIT \
16		asn1_compile compile_et config lint1 msgc menuc mklocale \
17		pwd_mkdb
18
19.if ${MKMAINTAINERTOOLS:Uno} != "no"
20SUBDIR+=	m4 .WAIT autoconf
21.endif
22.endif
23
24.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
25realall install: _warn
26.if ${MKTOOLS:Uyes} == "no"
27_warn:
28	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
29	@echo '*** updating your host toolchain.  This should be used only as a'
30	@echo '*** temporary workaround for toolchain problems, as it will result'
31	@echo '*** in version skew and build errors onver time!'
32.else
33_warn:
34.endif
35
36.for dir in ${SUBDIR:N.WAIT}
37all-${dir} depend-${dir} dependall-${dir} install-${dir}:
38	@true
39.endfor
40.endif
41
42.include <bsd.subdir.mk>
43.include <bsd.obj.mk>
44
45# For each .WAIT point, make sure the previous target is installed before
46# building a dependent target.
47_dep:=
48_last:=
49.for d in ${SUBDIR}
50_this:=		${d}
51.if ${_this} == ".WAIT"
52_dep:=		${_dep} install-${_last}
53.else
54_last:=		${d}
55depend-${d} all-${d} dependall-${d}: ${_dep}
56.endif
57.endfor
58
59cleantools:
60	rm -r -f tools.${HOST_OSTYPE}
61