1 # Makefile for Sphinx documentation
4 include $(top_srcdir)/adm_local/unix/make_common_starter.am
6 yamsdocdir=$(docdir)/gui/SMESH/yams
8 # You can set these variables from the command line.
11 SPHINXBUILD = sphinx-build
16 PAPEROPT_a4 = -D latex_paper_size=a4
17 PAPEROPT_letter = -D latex_paper_size=letter
18 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)
20 .PHONY: help clean html latexpdf
26 @echo "Please use \`make <target>' where <target> is one of"
27 @echo " html to make standalone HTML files"
28 @echo " dirhtml to make HTML files named index.html in directories"
29 @echo " singlehtml to make a single large HTML file"
30 @echo " pickle to make pickle files"
31 @echo " json to make JSON files"
32 @echo " htmlhelp to make HTML files and a HTML help project"
33 @echo " qthelp to make HTML files and a qthelp project"
34 @echo " devhelp to make HTML files and a Devhelp project"
35 @echo " epub to make an epub"
36 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
37 @echo " latexpdf to make LaTeX files and run them through pdflatex"
38 @echo " text to make text files"
39 @echo " man to make manual pages"
40 @echo " changes to make an overview of all changed/added/deprecated items"
41 @echo " linkcheck to check all external links for integrity"
42 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
44 install-data-local: all
45 test -z $(yamsdocdir) || mkdir -p $(yamsdocdir)
46 cp -rf $(BUILDDIR)/html/* $(yamsdocdir) ;
52 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
54 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
57 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
58 @echo "Running LaTeX files through pdflatex..."
59 $(MAKE) -C $(BUILDDIR)/latex all-pdf
60 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."