Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 2021 17:15:44 GMT
From:      Marc Fonvieille <blackend@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: 0a7a07dccc - main - documentation/Makefile: For PDF versions, only build requested languages.
Message-ID:  <202107051715.165HFijw071608@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by blackend:

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

commit 0a7a07dcccf3cc3c4a43174cbdafc6df88c59e81
Author:     Marc Fonvieille <blackend@FreeBSD.org>
AuthorDate: 2021-07-05 17:09:18 +0000
Commit:     Marc Fonvieille <blackend@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107051715.165HFijw071608>