Put rescue/ into a correct slot in the SUBDIR list. Sort bootstrap-,

build-, and cross-tools lists, reformat lists for easier maintenance.

Submitted by:	bde, ru
This commit is contained in:
Ruslan Ermilov 2003-07-01 12:57:53 +00:00
parent 270f6e44db
commit 3cc956548f

View File

@ -50,10 +50,6 @@ SUBDIR+= include
SUBDIR+= lib SUBDIR+= lib
.endif .endif
.if exists(${.CURDIR}/rescue) && !defined(NO_RESCUE)
SUBDIR+= rescue
.endif
.if exists(${.CURDIR}/bin) .if exists(${.CURDIR}/bin)
SUBDIR+= bin SUBDIR+= bin
.endif .endif
@ -70,6 +66,9 @@ SUBDIR+= kerberos5
.if exists(${.CURDIR}/libexec) .if exists(${.CURDIR}/libexec)
SUBDIR+= libexec SUBDIR+= libexec
.endif .endif
.if exists(${.CURDIR}/rescue) && !defined(NO_RESCUE)
SUBDIR+= rescue
.endif
.if exists(${.CURDIR}/sbin) .if exists(${.CURDIR}/sbin)
SUBDIR+= sbin SUBDIR+= sbin
.endif .endif
@ -678,11 +677,21 @@ _kbdcontrol= usr.sbin/kbdcontrol
.endif .endif
bootstrap-tools: bootstrap-tools:
.for _tool in ${_strfile} usr.bin/colldef \ .for _tool in \
usr.bin/makewhatis usr.bin/rpcgen ${_uudecode} \ ${_strfile} \
${_xargs} usr.bin/xinstall ${_yacc} \ ${_gperf} \
usr.sbin/config ${_crunchgen} ${_kbdcontrol} \ ${_groff} \
${_gperf} ${_groff} gnu/usr.bin/texinfo gnu/usr.bin/texinfo \
usr.bin/colldef \
usr.bin/makewhatis \
usr.bin/rpcgen \
${_uudecode} \
${_xargs} \
usr.bin/xinstall \
${_yacc} \
usr.sbin/config \
${_crunchgen} \
${_kbdcontrol}
@${ECHODIR} "===> ${_tool}"; \ @${ECHODIR} "===> ${_tool}"; \
cd ${.CURDIR}/${_tool}; \ cd ${.CURDIR}/${_tool}; \
${MAKE} DIRPRFX=${_tool}/ obj; \ ${MAKE} DIRPRFX=${_tool}/ obj; \
@ -713,9 +722,18 @@ _libkrb5= kerberos5/lib/libroken kerberos5/lib/libvers \
.endif .endif
build-tools: build-tools:
.for _tool in bin/csh bin/sh gnu/usr.bin/cc/cc_tools ${_fortran} \ .for _tool in \
${_libkrb5} lib/libncurses ${_share} \ bin/csh \
${_aicasm} usr.bin/awk usr.bin/file usr.sbin/sysinstall bin/sh \
gnu/usr.bin/cc/cc_tools \
${_fortran} \
${_libkrb5} \
lib/libncurses \
${_share} \
${_aicasm} \
usr.bin/awk \
usr.bin/file \
usr.sbin/sysinstall
@${ECHODIR} "===> ${_tool}"; \ @${ECHODIR} "===> ${_tool}"; \
cd ${.CURDIR}/${_tool}; \ cd ${.CURDIR}/${_tool}; \
${MAKE} DIRPRFX=${_tool}/ obj; \ ${MAKE} DIRPRFX=${_tool}/ obj; \
@ -725,34 +743,40 @@ build-tools:
# #
# cross-tools: Build cross-building tools # cross-tools: Build cross-building tools
# #
.if ${TARGET_ARCH} == "alpha" && ${TARGET_ARCH} != ${MACHINE_ARCH}
_elf2exe= usr.sbin/elf2exe
.endif
.if ${TARGET_ARCH} == "i386" && ${TARGET_ARCH} != ${MACHINE_ARCH}
_btxld= usr.sbin/btxld
.if defined(RELEASEDIR)
_kgzip= usr.sbin/kgzip
.endif
.endif
.if ${TARGET_ARCH} == "sparc64" && ${TARGET_ARCH} != ${MACHINE_ARCH} && \ .if ${TARGET_ARCH} == "sparc64" && ${TARGET_ARCH} != ${MACHINE_ARCH} && \
${BOOTSTRAPPING} < 500037 ${BOOTSTRAPPING} < 500037
_elf2aout= usr.bin/elf2aout _elf2aout= usr.bin/elf2aout
.endif .endif
.if ${TARGET_ARCH} == "i386" && ${TARGET_ARCH} != ${MACHINE_ARCH}
_btxld= usr.sbin/btxld
.endif
.if (exists(${.CURDIR}/rescue) && !defined(NO_RESCUE) || \ .if (exists(${.CURDIR}/rescue) && !defined(NO_RESCUE) || \
defined(RELEASEDIR)) && \ defined(RELEASEDIR)) && \
( ${TARGET_ARCH} != ${MACHINE_ARCH} || ${BOOTSTRAPPING} < 501101 ) ( ${TARGET_ARCH} != ${MACHINE_ARCH} || ${BOOTSTRAPPING} < 501101 )
_crunchide= usr.sbin/crunch/crunchide _crunchide= usr.sbin/crunch/crunchide
.endif .endif
_xlint= usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint .if ${TARGET_ARCH} == "alpha" && ${TARGET_ARCH} != ${MACHINE_ARCH}
_elf2exe= usr.sbin/elf2exe
.endif
.if ${TARGET_ARCH} == "i386" && ${TARGET_ARCH} != ${MACHINE_ARCH} && \
defined(RELEASEDIR)
_kgzip= usr.sbin/kgzip
.endif
cross-tools: cross-tools:
.for _tool in ${_btxld} ${_elf2aout} ${_elf2exe} \ .for _tool in \
gnu/usr.bin/binutils ${_crunchide} \ gnu/usr.bin/binutils \
gnu/usr.bin/cc ${_xlint} ${_kgzip} gnu/usr.bin/cc \
${_elf2aout} \
usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint \
${_btxld} \
${_crunchide} \
${_elf2exe} \
${_kgzip}
@${ECHODIR} "===> ${_tool}"; \ @${ECHODIR} "===> ${_tool}"; \
cd ${.CURDIR}/${_tool}; \ cd ${.CURDIR}/${_tool}; \
${MAKE} DIRPRFX=${_tool}/ obj; \ ${MAKE} DIRPRFX=${_tool}/ obj; \