Makefile revision 1.19
1#	$NetBSD: Makefile,v 1.19 2001/11/22 19:09:42 jmc 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 \
8	binstall .WAIT \
9		crunchgen gencat lint lint2 lorder mtree rpcgen \
10		texinfo tsort \
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.endif
18
19.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
20realall install: _warn
21.if ${MKTOOLS:Uyes} == "no"
22_warn:
23	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
24	@echo '*** updating your host toolchain.  This should be used only as a'
25	@echo '*** temporary workaround for toolchain problems, as it will result'
26	@echo '*** in version skew and build errors onver time!'
27.else
28_warn:
29.endif
30
31.for dir in ${SUBDIR:N.WAIT}
32all-${dir} depend-${dir} dependall-${dir} install-${dir}:
33	@true
34.endfor
35.endif
36
37.include <bsd.subdir.mk>
38.include <bsd.obj.mk>
39
40# For each .WAIT point, make sure the previous target is installed before
41# building a dependent target.
42_dep:=
43_last:=
44.for d in ${SUBDIR}
45_this:=		${d}
46.if ${_this} == ".WAIT"
47_dep:=		${_dep} install-${_last}
48.else
49_last:=		${d}
50depend-${d} all-${d} dependall-${d}: ${_dep}
51.endif
52.endfor
53
54cleantools:
55	rm -r -f tools.${HOST_OSTYPE}
56