Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.nls.mk
Show All 38 Lines | |||||
.for file in ${NLS} | .for file in ${NLS} | ||||
.if defined(NLSSRCFILES) | .if defined(NLSSRCFILES) | ||||
NLSSRCFILES_${file}?= ${NLSSRCFILES} | NLSSRCFILES_${file}?= ${NLSSRCFILES} | ||||
.endif | .endif | ||||
.if defined(NLSSRCFILES_${file}) | .if defined(NLSSRCFILES_${file}) | ||||
NLSSRCDIR_${file}?= ${NLSSRCDIR} | NLSSRCDIR_${file}?= ${NLSSRCDIR} | ||||
${file}.msg: ${NLSSRCFILES_${file}:S/^/${NLSSRCDIR_${file}}\//} | ${file}.msg: ${NLSSRCFILES_${file}:S/^/${NLSSRCDIR_${file}}\//} | ||||
@rm -f ${.TARGET} | @rm -f ${.TARGET} | ||||
.if defined(NLSICONV_${file}) | |||||
iconv -f ${NLSICONV_${file}:E} -t ${file:E} ${.ALLSRC} > ${.TARGET} | |||||
bapt: This is unsafe because iconv might not be in base on the host where you are build, it would at… | |||||
Not Done Inline ActionsI think that build-tools would be enough, since we disable man pages, and the like, during the early build (and if we don't, we should). imp: I think that build-tools would be enough, since we disable man pages, and the like, during the… | |||||
.else | |||||
cat ${.ALLSRC} > ${.TARGET} | cat ${.ALLSRC} > ${.TARGET} | ||||
.endif | |||||
CLEANFILES+= ${file}.msg | CLEANFILES+= ${file}.msg | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# | # | ||||
# .cat file build rules | # .cat file build rules | ||||
# | # | ||||
NLS:= ${NLS:=.cat} | NLS:= ${NLS:=.cat} | ||||
Show All 19 Lines |
This is unsafe because iconv might not be in base on the host where you are build, it would at least need to be in the bootstrap-tools