From 5f388dea1d3f7ee211a40afa36ed0f4d8a2984a1 Mon Sep 17 00:00:00 2001 From: Warren Block Date: Tue, 26 Jan 2016 23:42:48 +0000 Subject: [PATCH] Run 'make SRCS' in the English document directory. Some SRCS files are generated, like the list of mirrors used in the Handbook, and this will make certain they exist when the PO extraction process needs them. --- share/mk/doc.docbook.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk index 8dd15bb137..c04bb309ad 100644 --- a/share/mk/doc.docbook.mk +++ b/share/mk/doc.docbook.mk @@ -299,18 +299,20 @@ POSET_CMD= ${SED} -i '' -e '1s,^,\#${IDSTR1}${IDSTR2}\${.newline},' \ .if ${.TARGETS:Mpo} || ${.TARGETS:Mtran} MASTER_SRCS!= ${MAKE} -C ${EN_DIR} -V SRCS -EN_SRCS= ${MASTER_SRCS:S,^,${EN_DIR}/,g} -${DOC}.translate.xml: ${EN_SRCS} +${DOC}.translate.xml: @if [ "${TRAN_DIR}" == "${EN_DIR}" ]; then \ ${ECHO} "build PO file in a non-English dir" ; \ exit 1 ; \ fi + # some SRCS files might need to be generated, make sure they exist + @${MAKE} -C ${EN_DIR} ${MASTER_SRCS} > /dev/null # normalize the English original into a single file @${PO_XMLLINT} --nonet --noent --valid --xinclude ${MASTERDOC_EN} > ${.TARGET}.tmp # remove redundant namespace attributes @${PO_XMLLINT} --nsclean ${.TARGET}.tmp > ${.TARGET} @${RM} ${.TARGET}.tmp + @${MAKE} -C ${EN_DIR} clean > /dev/null po: ${PO_LANG}.po .PHONY: po