Blame external/pybind11/docs/Makefile

Packit 534379
# Makefile for Sphinx documentation
Packit 534379
#
Packit 534379
Packit 534379
# You can set these variables from the command line.
Packit 534379
SPHINXOPTS    =
Packit 534379
SPHINXBUILD   = sphinx-build
Packit 534379
PAPER         =
Packit 534379
BUILDDIR      = .build
Packit 534379
Packit 534379
# User-friendly check for sphinx-build
Packit 534379
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
Packit 534379
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
Packit 534379
endif
Packit 534379
Packit 534379
# Internal variables.
Packit 534379
PAPEROPT_a4     = -D latex_paper_size=a4
Packit 534379
PAPEROPT_letter = -D latex_paper_size=letter
Packit 534379
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
Packit 534379
# the i18n builder cannot share the environment and doctrees with the others
Packit 534379
I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
Packit 534379
Packit 534379
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
Packit 534379
Packit 534379
help:
Packit 534379
	@echo "Please use \`make <target>' where <target> is one of"
Packit 534379
	@echo "  html       to make standalone HTML files"
Packit 534379
	@echo "  dirhtml    to make HTML files named index.html in directories"
Packit 534379
	@echo "  singlehtml to make a single large HTML file"
Packit 534379
	@echo "  pickle     to make pickle files"
Packit 534379
	@echo "  json       to make JSON files"
Packit 534379
	@echo "  htmlhelp   to make HTML files and a HTML help project"
Packit 534379
	@echo "  qthelp     to make HTML files and a qthelp project"
Packit 534379
	@echo "  applehelp  to make an Apple Help Book"
Packit 534379
	@echo "  devhelp    to make HTML files and a Devhelp project"
Packit 534379
	@echo "  epub       to make an epub"
Packit 534379
	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
Packit 534379
	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
Packit 534379
	@echo "  latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
Packit 534379
	@echo "  text       to make text files"
Packit 534379
	@echo "  man        to make manual pages"
Packit 534379
	@echo "  texinfo    to make Texinfo files"
Packit 534379
	@echo "  info       to make Texinfo files and run them through makeinfo"
Packit 534379
	@echo "  gettext    to make PO message catalogs"
Packit 534379
	@echo "  changes    to make an overview of all changed/added/deprecated items"
Packit 534379
	@echo "  xml        to make Docutils-native XML files"
Packit 534379
	@echo "  pseudoxml  to make pseudoxml-XML files for display purposes"
Packit 534379
	@echo "  linkcheck  to check all external links for integrity"
Packit 534379
	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
Packit 534379
	@echo "  coverage   to run coverage check of the documentation (if enabled)"
Packit 534379
Packit 534379
clean:
Packit 534379
	rm -rf $(BUILDDIR)/*
Packit 534379
Packit 534379
html:
Packit 534379
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
Packit 534379
Packit 534379
dirhtml:
Packit 534379
	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
Packit 534379
Packit 534379
singlehtml:
Packit 534379
	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
Packit 534379
Packit 534379
pickle:
Packit 534379
	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
Packit 534379
	@echo
Packit 534379
	@echo "Build finished; now you can process the pickle files."
Packit 534379
Packit 534379
json:
Packit 534379
	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
Packit 534379
	@echo
Packit 534379
	@echo "Build finished; now you can process the JSON files."
Packit 534379
Packit 534379
htmlhelp:
Packit 534379
	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
Packit 534379
	@echo
Packit 534379
	@echo "Build finished; now you can run HTML Help Workshop with the" \
Packit 534379
	      ".hhp project file in $(BUILDDIR)/htmlhelp."
Packit 534379
Packit 534379
qthelp:
Packit 534379
	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
Packit 534379
	@echo
Packit 534379
	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
Packit 534379
	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
Packit 534379
	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pybind11.qhcp"
Packit 534379
	@echo "To view the help file:"
Packit 534379
	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pybind11.qhc"
Packit 534379
Packit 534379
applehelp:
Packit 534379
	$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
Packit 534379
	@echo "N.B. You won't be able to view it unless you put it in" \
Packit 534379
	      "~/Library/Documentation/Help or install it in your application" \
Packit 534379
	      "bundle."
Packit 534379
Packit 534379
devhelp:
Packit 534379
	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
Packit 534379
	@echo
Packit 534379
	@echo "Build finished."
Packit 534379
	@echo "To view the help file:"
Packit 534379
	@echo "# mkdir -p $$HOME/.local/share/devhelp/pybind11"
Packit 534379
	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pybind11"
Packit 534379
	@echo "# devhelp"
Packit 534379
Packit 534379
epub:
Packit 534379
	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
Packit 534379
Packit 534379
latex:
Packit 534379
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
Packit 534379
	@echo
Packit 534379
	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
Packit 534379
	@echo "Run \`make' in that directory to run these through (pdf)latex" \
Packit 534379
	      "(use \`make latexpdf' here to do that automatically)."
Packit 534379
Packit 534379
latexpdf:
Packit 534379
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
Packit 534379
	@echo "Running LaTeX files through pdflatex..."
Packit 534379
	$(MAKE) -C $(BUILDDIR)/latex all-pdf
Packit 534379
	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
Packit 534379
Packit 534379
latexpdfja:
Packit 534379
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
Packit 534379
	@echo "Running LaTeX files through platex and dvipdfmx..."
Packit 534379
	$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
Packit 534379
	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
Packit 534379
Packit 534379
text:
Packit 534379
	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The text files are in $(BUILDDIR)/text."
Packit 534379
Packit 534379
man:
Packit 534379
	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
Packit 534379
Packit 534379
texinfo:
Packit 534379
	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
Packit 534379
	@echo "Run \`make' in that directory to run these through makeinfo" \
Packit 534379
	      "(use \`make info' here to do that automatically)."
Packit 534379
Packit 534379
info:
Packit 534379
	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
Packit 534379
	@echo "Running Texinfo files through makeinfo..."
Packit 534379
	make -C $(BUILDDIR)/texinfo info
Packit 534379
	@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
Packit 534379
Packit 534379
gettext:
Packit 534379
	$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
Packit 534379
Packit 534379
changes:
Packit 534379
	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
Packit 534379
	@echo
Packit 534379
	@echo "The overview file is in $(BUILDDIR)/changes."
Packit 534379
Packit 534379
linkcheck:
Packit 534379
	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
Packit 534379
	@echo
Packit 534379
	@echo "Link check complete; look for any errors in the above output " \
Packit 534379
	      "or in $(BUILDDIR)/linkcheck/output.txt."
Packit 534379
Packit 534379
doctest:
Packit 534379
	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
Packit 534379
	@echo "Testing of doctests in the sources finished, look at the " \
Packit 534379
	      "results in $(BUILDDIR)/doctest/output.txt."
Packit 534379
Packit 534379
coverage:
Packit 534379
	$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
Packit 534379
	@echo "Testing of coverage in the sources finished, look at the " \
Packit 534379
	      "results in $(BUILDDIR)/coverage/python.txt."
Packit 534379
Packit 534379
xml:
Packit 534379
	$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
Packit 534379
Packit 534379
pseudoxml:
Packit 534379
	$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
Packit 534379
	@echo
Packit 534379
	@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."