Salome HOME
c9e79339fd42f3af61eb235d7178e3455d11593c
[modules/adao.git] / doc / Makefile.am
1 include $(top_srcdir)/adm_local/make_common_starter.am
2
3 # You can set these variables from the command line.
4 SPHINXOPTS    =
5 SPHINXBUILD   = sphinx-build
6 PAPER         =
7 BUILDDIR      = $(top_builddir)/doc/build
8 SRCDIR        = $(top_srcdir)/doc
9
10 EXTRA_DIST = main.rst intro.rst conf.py
11
12 install-data-local:
13         make html
14         ${mkinstalldirs} $(DESTDIR)$(docdir)
15         ${mkinstalldirs} $(salomeresdir)
16         cp -R $(BUILDDIR)/html/* $(DESTDIR)$(docdir)
17         cp $(SRCDIR)/resources/*.png $(salomeresdir)
18         cp $(SRCDIR)/images/eficas_*.png $(salomeresdir)
19
20 uninstall-local:
21         chmod -R +w $(DESTDIR)$(docdir)
22         rm -rf $(DESTDIR)$(docdir)
23         rm  $(salomeresdir)/*.png
24
25 clean-local:
26         -rm -rf $(top_builddir)/doc/build
27
28
29 # Internal variables.
30 PAPEROPT_a4     = -D latex_paper_size=a4
31 PAPEROPT_letter = -D latex_paper_size=letter
32 ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(top_srcdir)/doc
33
34 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
35
36 help:
37         @echo "Please use \`make <target>' where <target> is one of"
38         @echo "  html      to make standalone HTML files"
39         @echo "  dirhtml   to make HTML files named index.html in directories"
40         @echo "  pickle    to make pickle files"
41         @echo "  json      to make JSON files"
42         @echo "  htmlhelp  to make HTML files and a HTML help project"
43         @echo "  qthelp    to make HTML files and a qthelp project"
44         @echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
45         @echo "  changes   to make an overview of all changed/added/deprecated items"
46         @echo "  linkcheck to check all external links for integrity"
47         @echo "  doctest   to run all doctests embedded in the documentation (if enabled)"
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 dirhtml:
58         $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
59         @echo
60         @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
61
62 pickle:
63         $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
64         @echo
65         @echo "Build finished; now you can process the pickle files."
66
67 json:
68         $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
69         @echo
70         @echo "Build finished; now you can process the JSON files."
71
72 htmlhelp:
73         $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
74         @echo
75         @echo "Build finished; now you can run HTML Help Workshop with the" \
76               ".hhp project file in $(BUILDDIR)/htmlhelp."
77
78 qthelp:
79         $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
80         @echo
81         @echo "Build finished; now you can run "qcollectiongenerator" with the" \
82               ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
83         @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/ADAO.qhcp"
84         @echo "To view the help file:"
85         @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/ADAO.qhc"
86
87 latex:
88         $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
89         @echo
90         @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
91         @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
92               "run these through (pdf)latex."
93
94 changes:
95         $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
96         @echo
97         @echo "The overview file is in $(BUILDDIR)/changes."
98
99 linkcheck:
100         $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
101         @echo
102         @echo "Link check complete; look for any errors in the above output " \
103               "or in $(BUILDDIR)/linkcheck/output.txt."
104
105 doctest:
106         $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
107         @echo "Testing of doctests in the sources finished, look at the " \
108               "results in $(BUILDDIR)/doctest/output.txt."