Parallelize build-tools.

MFC after:	3 weeks
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2015-10-22 05:01:14 +00:00
parent cc104c812d
commit 68847f1449

View File

@ -1507,7 +1507,6 @@ _gcc_tools= gnu/usr.bin/cc/cc_tools
_rescue=rescue/rescue _rescue=rescue/rescue
.endif .endif
build-tools: .MAKE
.for _tool in \ .for _tool in \
bin/csh \ bin/csh \
bin/sh \ bin/sh \
@ -1521,18 +1520,22 @@ build-tools: .MAKE
usr.bin/mkesdb_static \ usr.bin/mkesdb_static \
usr.bin/mkcsmapper_static \ usr.bin/mkcsmapper_static \
usr.bin/vi/catalog usr.bin/vi/catalog
build-tools_${_tool}: .PHONY
${_+_}@${ECHODIR} "===> ${_tool} (obj,build-tools)"; \ ${_+_}@${ECHODIR} "===> ${_tool} (obj,build-tools)"; \
cd ${.CURDIR}/${_tool} && \ cd ${.CURDIR}/${_tool} && \
${MAKE} DIRPRFX=${_tool}/ obj && \ ${MAKE} DIRPRFX=${_tool}/ obj && \
${MAKE} DIRPRFX=${_tool}/ build-tools ${MAKE} DIRPRFX=${_tool}/ build-tools
build-tools: build-tools_${_tool}
.endfor .endfor
.for _tool in \ .for _tool in \
${_gcc_tools} ${_gcc_tools}
build-tools_${_tool}: .PHONY
${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all)"; \ ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all)"; \
cd ${.CURDIR}/${_tool} && \ cd ${.CURDIR}/${_tool} && \
${MAKE} DIRPRFX=${_tool}/ obj && \ ${MAKE} DIRPRFX=${_tool}/ obj && \
${MAKE} DIRPRFX=${_tool}/ depend && \ ${MAKE} DIRPRFX=${_tool}/ depend && \
${MAKE} DIRPRFX=${_tool}/ all ${MAKE} DIRPRFX=${_tool}/ all
build-tools: build-tools_${_tool}
.endfor .endfor
# #