diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-07-01 12:25:11 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-07-01 12:25:11 +0000 |
commit | a3d6b3e7d782f9e3b33b107537c7bf369f84f19e (patch) | |
tree | e6635cdcf9edd09d5f1e5d17e43d8bb03850bae2 /Makefile.inc1 | |
parent | 5d37567d7355e669bfcfabda74b387ca3473cb7d (diff) | |
download | src-a3d6b3e7d782f9e3b33b107537c7bf369f84f19e.tar.gz src-a3d6b3e7d782f9e3b33b107537c7bf369f84f19e.zip |
Only bootstrap crunchide(1) and build crunchgen(1) when necessary.
The latter needs to be built either if it's used as a cross-tool
(${TARGET_ARCH} != ${MACHINE_ARCH}) or if it has backward compat
issues, like e.g. lack of the AMD64 support.
Notes
Notes:
svn path=/head/; revision=117110
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index ced79eeb25cf..11c760d1f717 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -668,6 +668,11 @@ _xargs= usr.bin/xargs _yacc= usr.bin/yacc .endif +.if exists(${.CURDIR}/rescue) && !defined(NO_RESCUE) && \ + ${BOOTSTRAPPING} < 501100 +_crunchgen= usr.sbin/crunch/crunchgen +.endif + .if ${BOOTSTRAPPING} < 500019 _kbdcontrol= usr.sbin/kbdcontrol .endif @@ -676,7 +681,7 @@ bootstrap-tools: .for _tool in ${_strfile} usr.bin/colldef \ usr.bin/makewhatis usr.bin/rpcgen ${_uudecode} \ ${_xargs} usr.bin/xinstall ${_yacc} \ - usr.sbin/config ${_kbdcontrol} \ + usr.sbin/config ${_crunchgen} ${_kbdcontrol} \ ${_gperf} ${_groff} gnu/usr.bin/texinfo @${ECHODIR} "===> ${_tool}"; \ cd ${.CURDIR}/${_tool}; \ @@ -736,12 +741,17 @@ _kgzip= usr.sbin/kgzip _elf2aout= usr.bin/elf2aout .endif +.if (exists(${.CURDIR}/rescue) && !defined(NO_RESCUE) || \ + defined(RELEASEDIR)) && \ + ( ${TARGET_ARCH} != ${MACHINE_ARCH} || ${BOOTSTRAPPING} < 501101 ) +_crunchide= usr.sbin/crunch/crunchide +.endif + _xlint= usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint cross-tools: .for _tool in ${_btxld} ${_elf2aout} ${_elf2exe} \ - gnu/usr.bin/binutils \ - usr.sbin/crunch/crunchgen usr.sbin/crunch/crunchide \ + gnu/usr.bin/binutils ${_crunchide} \ gnu/usr.bin/cc ${_xlint} ${_kgzip} @${ECHODIR} "===> ${_tool}"; \ cd ${.CURDIR}/${_tool}; \ |