Makefile revision 1.18
11.18Sjmc#	$NetBSD: Makefile,v 1.18 2001/11/22 00:13:10 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.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.18Sjmc.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
201.17Stvrealall install: _warn
211.18Sjmc.if ${MKTOOLS} == "no"
221.17Stv_warn:
231.17Stv	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
241.17Stv	@echo '*** updating your host toolchain.  This should be used only as a'
251.17Stv	@echo '*** temporary workaround for toolchain problems, as it will result'
261.17Stv	@echo '*** in version skew and build errors onver time!'
271.18Sjmc.else
281.18Sjmc_warn:
291.18Sjmc.endif
301.17Stv
311.17Stv.for dir in ${SUBDIR:N.WAIT}
321.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}:
331.17Stv	@true
341.17Stv.endfor
351.14Stv.endif
361.1Stv
371.1Stv.include <bsd.subdir.mk>
381.11Stv.include <bsd.obj.mk>
391.16Stv
401.16Stv# For each .WAIT point, make sure the previous target is installed before
411.16Stv# building a dependent target.
421.16Stv_dep:=
431.16Stv_last:=
441.16Stv.for d in ${SUBDIR}
451.16Stv_this:=		${d}
461.16Stv.if ${_this} == ".WAIT"
471.16Stv_dep:=		${_dep} install-${_last}
481.16Stv.else
491.16Stv_last:=		${d}
501.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep}
511.16Stv.endif
521.16Stv.endfor
531.12Stv
541.12Stvcleantools:
551.12Stv	rm -r -f tools.${HOST_OSTYPE}
56