Makefile revision 1.17
11.17Stv#	$NetBSD: Makefile,v 1.17 2001/11/13 16:17:24 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.17Stv.endif
181.17Stv
191.17Stv.if ${MKTOOLS:Uyes} == "no"
201.17Stvrealall install: _warn
211.17Stv_warn:
221.17Stv	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
231.17Stv	@echo '*** updating your host toolchain.  This should be used only as a'
241.17Stv	@echo '*** temporary workaround for toolchain problems, as it will result'
251.17Stv	@echo '*** in version skew and build errors onver time!'
261.17Stv
271.17Stv.for dir in ${SUBDIR:N.WAIT}
281.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}:
291.17Stv	@true
301.17Stv.endfor
311.14Stv.endif
321.1Stv
331.1Stv.include <bsd.subdir.mk>
341.11Stv.include <bsd.obj.mk>
351.16Stv
361.16Stv# For each .WAIT point, make sure the previous target is installed before
371.16Stv# building a dependent target.
381.16Stv_dep:=
391.16Stv_last:=
401.16Stv.for d in ${SUBDIR}
411.16Stv_this:=		${d}
421.16Stv.if ${_this} == ".WAIT"
431.16Stv_dep:=		${_dep} install-${_last}
441.16Stv.else
451.16Stv_last:=		${d}
461.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep}
471.16Stv.endif
481.16Stv.endfor
491.12Stv
501.12Stvcleantools:
511.12Stv	rm -r -f tools.${HOST_OSTYPE}
52