diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-10-29 01:21:52 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-10-29 01:21:52 +0000 |
commit | be1ef37b94109d942c3d0eaa2b740e6edc06bc6e (patch) | |
tree | 0df8088d1a959421682aeece70de28bf304c8d7b /Makefile.inc1 | |
parent | 86c4ac993dfe868646a796f396a049ef1849f4a5 (diff) | |
download | src-be1ef37b94109d942c3d0eaa2b740e6edc06bc6e.tar.gz src-be1ef37b94109d942c3d0eaa2b740e6edc06bc6e.zip |
xdev: Consolidate duplicate cross-tools build/install list into XDEVDIRS.
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/head/; revision=325089
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 9cb2ae5c43e3..6c5e29057615 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2846,8 +2846,7 @@ _xb-build-tools: .PHONY ${_+_}@cd ${.CURDIR}; \ ${CDBENV} ${MAKE} -f Makefile.inc1 ${NOFUN} build-tools -_xb-cross-tools: .PHONY -.for _tool in \ +XDEVDIRS= \ ${_lld} \ ${_binutils} \ ${_elftctools} \ @@ -2855,6 +2854,9 @@ _xb-cross-tools: .PHONY ${_clang_libs} \ ${_clang} \ ${_gcc} + +_xb-cross-tools: .PHONY +.for _tool in ${XDEVDIRS} ${_+_}@${ECHODIR} "===> xdev ${_tool} (obj,all)"; \ cd ${.CURDIR}/${_tool}; \ if [ -z "${NO_OBJ}" ]; then ${CDMAKE} DIRPRFX=${_tool}/ obj; fi; \ @@ -2885,14 +2887,7 @@ xdev-install: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries .P _xi-cross-tools: .PHONY @echo "_xi-cross-tools" -.for _tool in \ - ${_lld} \ - ${_binutils} \ - ${_elftctools} \ - usr.bin/ar \ - ${_clang_libs} \ - ${_clang} \ - ${_gcc} +.for _tool in ${XDEVDIRS} ${_+_}@${ECHODIR} "===> xdev ${_tool} (install)"; \ cd ${.CURDIR}/${_tool}; \ ${CDMAKE} DIRPRFX=${_tool}/ install DESTDIR=${XDDESTDIR} |