Makefile revision 1.16
11.16Stv#	$NetBSD: Makefile,v 1.16 2001/11/12 23:16:22 tv Exp $
21.1Stv
31.3Stv.include <bsd.own.mk>
41.3Stv
51.16Stv# Dependencies in SUBDIR below ordered to maximize parallel ability.
61.14Stv.if !defined(NOSUBDIR)
71.16StvSUBDIR=	mkdep .WAIT \
81.16Stv	binstall .WAIT \
91.16Stv		crunchgen gencat lint lint2 lorder mtree rpcgen \
101.16Stv		texinfo tsort \
111.16Stv	toolchain .WAIT \
121.16Stv		dbsym mdsetimage \
131.16Stv	yacc .WAIT \
141.16Stv		groff \
151.16Stv	lex .WAIT \
161.16Stv		asn1_compile compile_et config lint1 msgc menuc mklocale
171.14Stv.endif
181.1Stv
191.1Stv.include <bsd.subdir.mk>
201.11Stv.include <bsd.obj.mk>
211.16Stv
221.16Stv# For each .WAIT point, make sure the previous target is installed before
231.16Stv# building a dependent target.
241.16Stv_dep:=
251.16Stv_last:=
261.16Stv.for d in ${SUBDIR}
271.16Stv_this:=		${d}
281.16Stv.if ${_this} == ".WAIT"
291.16Stv_dep:=		${_dep} install-${_last}
301.16Stv.else
311.16Stv_last:=		${d}
321.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep}
331.16Stv.endif
341.16Stv.endfor
351.12Stv
361.12Stvcleantools:
371.12Stv	rm -r -f tools.${HOST_OSTYPE}
38