1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

share/termcap requires ex from usr.bin/vi in order to compile, and since usr.bin

comes after share in SUBDIR in Makefile.inc1, the build will fail when vi is not
installed on the build host

Run build-tools for usr.bin/vi and install ex, etc to WORLDTMP to enable building
share/termcap on hosts that don't have nvi installed on them
This commit is contained in:
Enji Cooper 2014-11-29 01:53:27 +00:00
parent ef0036244a
commit 1d91a05822
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/building-blocks/; revision=275224
2 changed files with 16 additions and 1 deletions

View File

@ -271,7 +271,9 @@ TMAKE= MAKEOBJDIRPREFIX=${OBJTREE} \
BOOTSTRAPPING=${OSRELDATE} \
SSP_CFLAGS= \
-DNO_LINT \
-DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no MK_CLANG_FULL=no MK_LLDB=no MK_TESTS=no
-DNO_CPU_CFLAGS \
MK_WARNS=no MK_CTF=no MK_CLANG_FULL=no MK_LLDB=no MK_MAN=no \
MK_SHAREDOCS=no MK_TESTS=no
# cross-tools stage
XMAKE= TOOLS_PREFIX=${WORLDTMP} ${BMAKE} \
@ -1386,6 +1388,14 @@ build-tools: .MAKE
${MAKE} DIRPRFX=${_tool}/ depend && \
${MAKE} DIRPRFX=${_tool}/ all
.endfor
.for _tool in \
usr.bin/vi
${_+_}@${ECHODIR} "===> ${_tool} (obj,build-tools,install)"; \
cd ${.CURDIR}/${_tool} && \
${MAKE} DIRPRFX=${_tool}/ obj && \
${MAKE} DIRPRFX=${_tool}/ build-tools DESTDIR=${WORLDTMP}/ \
MK_MAN=no
.endfor
#
# kernel-tools: Build kernel-building tools

View File

@ -77,4 +77,9 @@ SRCS+= vs_line.c vs_msg.c vs_refresh.c vs_relative.c vs_smap.c vs_split.c
# Wide char regex
SRCS+= regcomp.c regerror.c regexec.c regfree.c
build-tools:
.for t in obj depend all install
cd ${.CURDIR} && ${MAKE} $t SUBDIR=
.endfor
.include <bsd.prog.mk>