Add make latex, make pdf

main
Jeff Moe 2023-12-03 12:20:51 -07:00
parent eaddcf1c46
commit ca5038c8db
1 changed files with 9 additions and 1 deletions

View File

@ -13,13 +13,15 @@ PO_FILES = $(wildcard docs/source/locale/*/LC_MESSAGES/*.po)
MSGATTRIB = msgattrib
LANGUAGES = am ar bn de el en eo es eu fil fr he hi id it ja ko lkt mr ms nl pl pt ru ta te th tr ur vi zh
.PHONY: check help html livehtml clean_sphinx clean gettext_build update_locale build_html all copy clean_po
.PHONY: check help html livehtml clean_sphinx clean gettext_build update_locale build_html all copy clean_po latex pdf
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " clean Remove all build files and directories (including translations)"
@echo " all Clean and make all targets"
@echo " html Build the HTML documentation for all languages"
@echo " latex Build the documentation using LaTeX"
@echo " pdf Build the PDFS documentation using LaTeX"
@echo " html_<lang> Build HTML documentation for <lang>"
@echo " update_locale Update localisation"
@echo " update_locale_<lang> Update localisation for <lang>"
@ -66,5 +68,11 @@ html:
$(SPHINXBUILD) -b html -d $(BUILDDIR)/doctrees -D language=$$lang $(SOURCEDIR) $(BUILDDIR)/html/$$lang; \
done
latex:
$(SPHINXBUILD) -b latex -d $(BUILDDIR)/doctrees $(SOURCEDIR) $(BUILDDIR)/latex
pdf:
cd docs/build/latex/ ; make
html_%: gettext_build
$(SPHINXBUILD) -b html -d $(BUILDDIR)/doctrees -D language=$* -c $(SOURCEDIR) $(SOURCEDIR) $(BUILDDIR)/html/$*/