build-tools: De-special-case the gcc tools build.

It merely wanted to use 'all' rather than 'build-tools' so just
add a build-tools target to the Makefile.

MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Bryan Drewery 2017-10-31 19:02:05 +00:00
parent 2bfb5e812b
commit 7cd84b5641
2 changed files with 3 additions and 10 deletions

View File

@ -1986,7 +1986,8 @@ _tcsh=bin/csh
lib/libmagic \ lib/libmagic \
usr.bin/mkesdb_static \ usr.bin/mkesdb_static \
usr.bin/mkcsmapper_static \ usr.bin/mkcsmapper_static \
usr.bin/vi/catalog usr.bin/vi/catalog \
${_gcc_tools}
build-tools_${_tool}: .PHONY build-tools_${_tool}: .PHONY
${_+_}@${ECHODIR} "===> ${_tool} (obj,build-tools)"; \ ${_+_}@${ECHODIR} "===> ${_tool} (obj,build-tools)"; \
cd ${.CURDIR}/${_tool}; \ cd ${.CURDIR}/${_tool}; \
@ -1994,15 +1995,6 @@ build-tools_${_tool}: .PHONY
${MAKE} DIRPRFX=${_tool}/ build-tools ${MAKE} DIRPRFX=${_tool}/ build-tools
build-tools: build-tools_${_tool} build-tools: build-tools_${_tool}
.endfor .endfor
.for _tool in \
${_gcc_tools}
build-tools_${_tool}: .PHONY
${_+_}@${ECHODIR} "===> ${_tool} (obj,all)"; \
cd ${.CURDIR}/${_tool}; \
if [ -z "${NO_OBJ}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \
${MAKE} DIRPRFX=${_tool}/ all
build-tools: build-tools_${_tool}
.endfor
# #
# kernel-tools: Build kernel-building tools # kernel-tools: Build kernel-building tools

View File

@ -391,6 +391,7 @@ GNTOOLS+= genattr genattrtab genautomata gencodes gencheck genchecksum \
${GNTOOLS:C,$,.o,} ${GNTOOLS}: ${BUILD_TOOLS_META} ${GNTOOLS:C,$,.o,} ${GNTOOLS}: ${BUILD_TOOLS_META}
all: ${GNTOOLS} ${GENSRCS} ${GENONLY} all: ${GNTOOLS} ${GENSRCS} ${GENONLY}
build-tools: all
beforedepend: ${GENONLY} beforedepend: ${GENONLY}
# #