diff options
author | bapt <bapt@FreeBSD.org> | 2015-01-02 21:16:13 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-01-02 21:16:13 +0000 |
commit | 44b8a6e1e82601f81451975b26516e92320f29b3 (patch) | |
tree | 26ceee6b2902b50736680e040ef116b3345a4337 /Makefile.inc1 | |
parent | 1acd47c5699893b22a711b4b942645344bb21644 (diff) | |
download | FreeBSD-src-44b8a6e1e82601f81451975b26516e92320f29b3.zip FreeBSD-src-44b8a6e1e82601f81451975b26516e92320f29b3.tar.gz |
Make texinfo a bootstrap tools this fixes cross building when makeinfo is not \
available on the host
Differential Revision: https://reviews.freebsd.org/D1410
Submitted by: ngie (initial patch)
Reviewed by: ngie, imp
MFC after: 1 week
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 8d06367..c23d9c1 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -233,6 +233,7 @@ CROSSENV+= GROFF_BIN_PATH=${WORLDTMP}/legacy/usr/bin \ GROFF_TMAC_PATH=${WORLDTMP}/legacy/usr/share/tmac .endif +_BOOTSTRAP_MAKEINFO?= ${MK_INFO} # bootstrap-tools stage BMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \ PATH=${BPATH}:${PATH} \ @@ -247,6 +248,7 @@ BMAKE= MAKEOBJDIRPREFIX=${WORLDTMP} \ SSP_CFLAGS= \ -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN \ -DNO_PIC -DNO_PROFILE -DNO_SHARED \ + _BOOTSTRAP_MAKEINFO=${_BOOTSTRAP_MAKEINFO} \ -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD -DNO_TESTS # build-tools stage @@ -1309,6 +1311,10 @@ _kerberos5_bootstrap_tools= \ usr.bin/compile_et .endif +.if ${_BOOTSTRAP_MAKEINFO} != "no" +_texinfo= gnu/usr.bin/texinfo/libtxi \ + gnu/usr.bin/texinfo/makeinfo +.endif # Please document (add comment) why something is in 'bootstrap-tools'. # Try to bound the building of the bootstrap-tool to just the # FreeBSD versions that need the tool built at this stage of the build. @@ -1338,6 +1344,7 @@ bootstrap-tools: .MAKE usr.sbin/config \ ${_crunch} \ ${_nmtree} \ + ${_texinfo} \ ${_vtfontcvt} ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ cd ${.CURDIR}/${_tool} && \ @@ -1358,11 +1365,6 @@ _share= share/syscons/scrnmaps _gcc_tools= gnu/usr.bin/cc/cc_tools .endif -.if ${MK_INFO} != "no" -_texinfo= gnu/usr.bin/texinfo/libtxi \ - gnu/usr.bin/texinfo/makeinfo -.endif - .if ${MK_RESCUE} != "no" _rescue= rescue/rescue .endif @@ -1394,15 +1396,6 @@ build-tools: .MAKE ${MAKE} DIRPRFX=${_tool}/ depend && \ ${MAKE} DIRPRFX=${_tool}/ all .endfor -.for _tool in \ - ${_texinfo} - ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ - cd ${.CURDIR}/${_tool} && \ - ${MAKE} DIRPRFX=${_tool}/ obj && \ - ${MAKE} DIRPRFX=${_tool}/ depend && \ - ${MAKE} DIRPRFX=${_tool}/ all && \ - ${MAKE} DIRPRFX=${_tool}/ install DESTDIR=${WORLDTMP} -.endfor # |