- When <langcode>/share/mk/doc.local.mk exists, it will be included
just after doc.common.mk included. This can be used for various language specific customizations. - Remove SP_ENCODING_LIST. Translators should define the SP_ENCODING variable directly in their doc.local.mk when it is needed. Discussed with: den
This commit is contained in:
parent
17d0719cf6
commit
7462d30d2f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=21883
2 changed files with 10 additions and 12 deletions
share/mk
|
@ -147,7 +147,10 @@ NSGMLSWARNINGS= -wempty -wunclosed
|
|||
SX?= ${PREFIX}/bin/sx
|
||||
.endif
|
||||
|
||||
JADE_CMD= ${JADE}
|
||||
.if defined(SP_ENCODING)
|
||||
JADE_ENV+= SP_ENCODING=${SP_ENCODING}
|
||||
.endif
|
||||
JADE_CMD= ${SETENV} ${JADE_ENV} ${JADE}
|
||||
|
||||
DSLHTML?= ${DOC_PREFIX}/share/sgml/default.dsl
|
||||
DSLPRINT?= ${DOC_PREFIX}/share/sgml/default.dsl
|
||||
|
@ -452,17 +455,6 @@ CLEANFILES+= ${HTML_SPLIT_INDEX} ${HTML_INDEX} ${PRINT_INDEX}
|
|||
|
||||
all: ${_docs}
|
||||
|
||||
#
|
||||
# SP_ENCODING support
|
||||
#
|
||||
CUR_ENCODING!= ${ECHO} ${LANGCODE} | ${SED} 's/^.*\.//' | \
|
||||
${SED} 's/^ISO/ISO\-/'
|
||||
.for _sp_encoding in ${SP_ENCODING_LIST}
|
||||
.if ${CUR_ENCODING} == ${_sp_encoding}
|
||||
JADE_CMD= SP_ENCODING=${CUR_ENCODING} ${JADE}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
# XML --------------------------------------------------------------------
|
||||
|
||||
# sx generates a lot of (spurious) errors of the form "reference to
|
||||
|
|
|
@ -99,6 +99,12 @@ SETENV?= /usr/bin/env
|
|||
# targets and variables commonly used in doc/ and www/ tree.
|
||||
.include "doc.common.mk"
|
||||
|
||||
DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.local.mk
|
||||
|
||||
.if exists(${DOC_LOCAL_MK})
|
||||
.include "${DOC_LOCAL_MK}"
|
||||
.endif
|
||||
|
||||
# Ownership information.
|
||||
.include "doc.install.mk"
|
||||
|
||||
|
|
Loading…
Reference in a new issue