git: 0a7a07dccc - main - documentation/Makefile: For PDF versions, only build requested languages.

Marc Fonvieille blackend at FreeBSD.org
Mon Jul 5 17:15:44 UTC 2021


The branch main has been updated by blackend:

URL: https://cgit.FreeBSD.org/doc/commit/?id=0a7a07dcccf3cc3c4a43174cbdafc6df88c59e81

commit 0a7a07dcccf3cc3c4a43174cbdafc6df88c59e81
Author:     Marc Fonvieille <blackend at FreeBSD.org>
AuthorDate: 2021-07-05 17:09:18 +0000
Commit:     Marc Fonvieille <blackend at FreeBSD.org>
CommitDate: 2021-07-05 17:09:18 +0000

    documentation/Makefile: For PDF versions, only build requested languages.
---
 documentation/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/documentation/Makefile b/documentation/Makefile
index 58a42c4aee..7cbb8cec4d 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -33,7 +33,7 @@ ASCIIDOCTORPDF_CMD=	${LOCALBASE}/bin/asciidoctor-pdf
 
 .if defined(DOC_LANG) && !empty(DOC_LANG)
 LANGUAGES=	${DOC_LANG:S/,/ /g}
-.if  ${LANGUAGES:Men} == ""
+.if  ${LANGUAGES:Men} == "" && ${.TARGETS:Mpdf*} == ""
 .warning "Warning: cannot skip 'en'; adding it back"
 LANGUAGES+=	en
 .endif


More information about the dev-commits-doc-all mailing list