NetBSD/tools/Makefile
tv 259ff4e7d0 Re-add MKTOOLS as a "yes"/"no" only variable, which prevents recursion on "no"
into the src/tools subdirs on all/depend/dependall/install.  Other recursive
targets are not affected.
2001-11-13 16:17:24 +00:00

52 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2001/11/13 16:17:24 tv Exp $
.include <bsd.own.mk>
# Dependencies in SUBDIR below ordered to maximize parallel ability.
.if !defined(NOSUBDIR)
SUBDIR= mkdep .WAIT \
binstall .WAIT \
crunchgen gencat lint lint2 lorder mtree rpcgen \
texinfo tsort \
toolchain .WAIT \
dbsym mdsetimage \
yacc .WAIT \
groff \
lex .WAIT \
asn1_compile compile_et config lint1 msgc menuc mklocale
.endif
.if ${MKTOOLS:Uyes} == "no"
realall install: _warn
_warn:
@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
@echo '*** updating your host toolchain. This should be used only as a'
@echo '*** temporary workaround for toolchain problems, as it will result'
@echo '*** in version skew and build errors onver time!'
.for dir in ${SUBDIR:N.WAIT}
all-${dir} depend-${dir} dependall-${dir} install-${dir}:
@true
.endfor
.endif
.include <bsd.subdir.mk>
.include <bsd.obj.mk>
# For each .WAIT point, make sure the previous target is installed before
# building a dependent target.
_dep:=
_last:=
.for d in ${SUBDIR}
_this:= ${d}
.if ${_this} == ".WAIT"
_dep:= ${_dep} install-${_last}
.else
_last:= ${d}
depend-${d} all-${d} dependall-${d}: ${_dep}
.endif
.endfor
cleantools:
rm -r -f tools.${HOST_OSTYPE}