Makefile revision 1.21
11.21Sjmc#	$NetBSD: Makefile,v 1.21 2001/12/07 02:28:53 jmc 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.20Sthorpej		texinfo tsort makewhatis \
111.16Stv	toolchain .WAIT \
121.16Stv		dbsym mdsetimage \
131.16Stv	yacc .WAIT \
141.16Stv		groff \
151.16Stv	lex .WAIT \
161.21Sjmc		asn1_compile compile_et config lint1 msgc menuc mklocale \
171.21Sjmc		pwd_mkdb
181.17Stv.endif
191.17Stv
201.18Sjmc.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
211.17Stvrealall install: _warn
221.19Sjmc.if ${MKTOOLS:Uyes} == "no"
231.17Stv_warn:
241.17Stv	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
251.17Stv	@echo '*** updating your host toolchain.  This should be used only as a'
261.17Stv	@echo '*** temporary workaround for toolchain problems, as it will result'
271.17Stv	@echo '*** in version skew and build errors onver time!'
281.18Sjmc.else
291.18Sjmc_warn:
301.18Sjmc.endif
311.17Stv
321.17Stv.for dir in ${SUBDIR:N.WAIT}
331.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}:
341.17Stv	@true
351.17Stv.endfor
361.14Stv.endif
371.1Stv
381.1Stv.include <bsd.subdir.mk>
391.11Stv.include <bsd.obj.mk>
401.16Stv
411.16Stv# For each .WAIT point, make sure the previous target is installed before
421.16Stv# building a dependent target.
431.16Stv_dep:=
441.16Stv_last:=
451.16Stv.for d in ${SUBDIR}
461.16Stv_this:=		${d}
471.16Stv.if ${_this} == ".WAIT"
481.16Stv_dep:=		${_dep} install-${_last}
491.16Stv.else
501.16Stv_last:=		${d}
511.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep}
521.16Stv.endif
531.16Stv.endfor
541.12Stv
551.12Stvcleantools:
561.12Stv	rm -r -f tools.${HOST_OSTYPE}
57