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