Check for USETOOLS!=yes in addition to MKTOOLS==no to generate the empty rule
sets. Otherwise platforms not running the new toolchain will end up with lossage as tools attempt to get built and installed into /bin (due to bsd.own.mk properly checking USETOOLS before setting up a default TOOLDIR). Don't print the warning unless MKTOOLS=no
This commit is contained in:
parent
3bad9b1f33
commit
0d11dd0127
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.17 2001/11/13 16:17:24 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.18 2001/11/22 00:13:10 jmc Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
@ -16,13 +16,17 @@ SUBDIR= mkdep .WAIT \
|
|||
asn1_compile compile_et config lint1 msgc menuc mklocale
|
||||
.endif
|
||||
|
||||
.if ${MKTOOLS:Uyes} == "no"
|
||||
.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
|
||||
realall install: _warn
|
||||
.if ${MKTOOLS} == "no"
|
||||
_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!'
|
||||
.else
|
||||
_warn:
|
||||
.endif
|
||||
|
||||
.for dir in ${SUBDIR:N.WAIT}
|
||||
all-${dir} depend-${dir} dependall-${dir} install-${dir}:
|
||||
|
|
Loading…
Reference in New Issue