Oops, don't build tools for building games, etc. when we're not building

games, etc.

Define _BUILD_TOOLS in sub-makes for building tools.  This will be used
to avoid using uninstalled tools in colldef and mklocale.
This commit is contained in:
Bruce Evans 1998-07-07 09:59:48 +00:00
parent 07d8ec4c17
commit 1d86f959b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37475

View File

@ -1,5 +1,5 @@
# #
# $Id: Makefile,v 1.203 1998/06/17 09:34:42 bde Exp $ # $Id: Makefile,v 1.204 1998/07/07 05:37:34 bde Exp $
# #
# While porting to the another architecture include the bootstrap instead # While porting to the another architecture include the bootstrap instead
# of the normal build. # of the normal build.
@ -727,12 +727,27 @@ libraries:
cd ${.CURDIR}/kerberosIV/lib; ${MAKE} all; ${MAKE} -B install cd ${.CURDIR}/kerberosIV/lib; ${MAKE} all; ${MAKE} -B install
.endif .endif
# Exclude perl from the build-tools if NOPERL is defined. #
.if defined(NOPERL) # Exclude unused tools from build-tools.
_perl= #
.else .if !defined(NOGAMES) && exists(${.CURDIR}/games)
_perl= gnu/usr.bin/perl/perl _adventure= games/adventure
_caesar= games/caesar
_hack= games/hack
_phantasia= games/phantasia
_strfile= games/fortune/strfile
.endif .endif
.if !defined(NOPERL)
_perl= gnu/usr.bin/perl/perl
.endif
.if !defined(NOSHARE) && exists(${.CURDIR}/share)
_scrnmaps= share/syscons/scrnmaps
.endif
.if !defined(NOLKM) && exists(${.CURDIR}/lkm)
_linux= lkm/linux
.endif
BTMAKEFLAGS= ${MK_FLAGS} -D_BUILD_TOOLS
# #
# build-tools - build and install any other tools needed to complete the # build-tools - build and install any other tools needed to complete the
@ -760,8 +775,8 @@ build-tools:
bin/mv \ bin/mv \
bin/rm \ bin/rm \
bin/test \ bin/test \
games/caesar \ ${_caesar} \
games/fortune/strfile \ ${_strfile} \
gnu/usr.bin/awk \ gnu/usr.bin/awk \
gnu/usr.bin/bc \ gnu/usr.bin/bc \
gnu/usr.bin/grep \ gnu/usr.bin/grep \
@ -808,24 +823,26 @@ build-tools:
usr.sbin/mtree \ usr.sbin/mtree \
usr.sbin/zic \ usr.sbin/zic \
bin/sh bin/sh
cd ${.CURDIR}/$d; ${MAKE} ${MK_FLAGS} ${_DEPEND}; \ cd ${.CURDIR}/$d; ${MAKE} ${BTMAKEFLAGS} ${_DEPEND}; \
${MAKE} ${MK_FLAGS} all; \ ${MAKE} ${BTMAKEFLAGS} all; \
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR} ${MAKE} ${BTMAKEFLAGS} -B install ${CLEANDIR} ${OBJDIR}
.endfor .endfor
.if !defined(NOGAMES) && exists(${.CURDIR}/games)
cd ${DESTDIR}/usr/games; cp -p caesar strfile ${DESTDIR}/usr/bin cd ${DESTDIR}/usr/games; cp -p caesar strfile ${DESTDIR}/usr/bin
.endif
.for d in \ .for d in \
bin/sh \ bin/sh \
games/adventure \ ${_adventure} \
games/hack \ ${_hack} \
games/phantasia \ ${_phantasia} \
gnu/usr.bin/cc/cc_tools \ gnu/usr.bin/cc/cc_tools \
lib/libmytinfo \ lib/libmytinfo \
lkm/linux \ ${_linux} \
share/syscons/scrnmaps \ ${_scrnmaps} \
sys/i386/boot/netboot sys/i386/boot/netboot
cd ${.CURDIR}/$d; ${MAKE} ${MK_FLAGS} build-tools cd ${.CURDIR}/$d; ${MAKE} ${BTMAKEFLAGS} build-tools
.endfor .endfor
cd ${.CURDIR}/usr.bin/tn3270/tools; ${MAKE} ${MK_FLAGS} all cd ${.CURDIR}/usr.bin/tn3270/tools; ${MAKE} ${BTMAKEFLAGS} all
.for __target in clean cleandepend cleandir depend obj .for __target in clean cleandepend cleandir depend obj
.for entry in ${SUBDIR} .for entry in ${SUBDIR}