From afd0077a25c46a7d38c219169d8dcabeac892445 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 15 Jul 2025 15:08:20 +0200 Subject: [PATCH] build: Add a step to build a translated PDF Signed-off-by: Joas Schilling --- user_manual/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/user_manual/Makefile b/user_manual/Makefile index 558c86df6..b2a6f8555 100644 --- a/user_manual/Makefile +++ b/user_manual/Makefile @@ -137,11 +137,22 @@ latexpdf: buf_size=10000000 $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." +latexpdf-lang-%: + $(SPHINXBUILD) -b latex -D language=$* $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + buf_size=10000000 $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + pdf: $(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf @echo @echo "build finished. the text files are in $(BUILDDIR)/pdf." +pdf-lang-%: + $(SPHINXBUILD) -b pdf -D language=$* $(ALLSPHINXOPTS) $(BUILDDIR)/pdf + @echo + @echo "build finished. the text files are in $(BUILDDIR)/pdf." + text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @echo