aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2018-08-23 18:19:21 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2018-08-23 18:19:21 +0000
commitc97e51679b8b341202b6ccba48df26733bc16645 (patch)
treeaba50c2f71355d689e5f0e3b5c3b64d61672323b /Makefile.inc1
parenta00cd9540d117e62edb8e1e35266d6d13c91975c (diff)
downloadsrc-c97e51679b8b341202b6ccba48df26733bc16645.tar.gz
src-c97e51679b8b341202b6ccba48df26733bc16645.zip
Only bootstrap localedef if ${MK_LOCALES} != "no"
During the build it is only used by share/ctypedef and share/colldef which will not be built if ${MK_LOCALE} == "no". This saves a tiny bit of time when building without locales. Approved By: jhb (mentor)
Notes
Notes: svn path=/head/; revision=338269
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc16
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 70756d6653b4..cc3ab0f5eda2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2031,6 +2031,10 @@ ${_bt}-usr.bin/yacc: ${_bt}-lib/liby
_gensnmptree= usr.sbin/bsnmpd/gensnmptree
.endif
+.if ${MK_LOCALES} != "no"
+_localedef= usr.bin/localedef
+.endif
+
# We need to build tblgen when we're building clang or lld, either as
# bootstrap tools, or as the part of the normal build.
.if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no" || \
@@ -2092,7 +2096,7 @@ bootstrap-tools: .PHONY
${_crunchgen} \
${_nmtree} \
${_vtfontcvt} \
- usr.bin/localedef
+ ${_localedef}
${_bt}-${_tool}: .PHONY .MAKE
${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \
cd ${.CURDIR}/${_tool}; \