~james-w/ubuntu/lucid/psycopg2/precise-backport

« back to all changes in this revision

Viewing changes to doc/src/Makefile

  • Committer: Mikhail Turov
  • Date: 2010-07-28 20:30:01 UTC
  • mfrom: (5.1.9 sid)
  • Revision ID: groldster@gmail.com-20100728203001-u1dv46tnd3s02ejg
Tags: 2.2.1-1ubuntu1
releasing version 2.2.1-1ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for Sphinx documentation
 
2
#
 
3
 
 
4
# You can set these variables from the command line.
 
5
SPHINXOPTS    =
 
6
SPHINXBUILD   = sphinx-build
 
7
PAPER         =
 
8
BUILDDIR      = _build
 
9
 
 
10
# DSN for the doctest database
 
11
PSYCOPG2_DSN="user=postgres dbname=test"
 
12
 
 
13
# Internal variables.
 
14
PAPEROPT_a4     = -D latex_paper_size=a4
 
15
PAPEROPT_letter = -D latex_paper_size=letter
 
16
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
17
 
 
18
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
 
19
 
 
20
help:
 
21
        @echo "Please use \`make <target>' where <target> is one of"
 
22
        @echo "  html      to make standalone HTML files"
 
23
        @echo "  dirhtml   to make HTML files named index.html in directories"
 
24
        @echo "  pickle    to make pickle files"
 
25
        @echo "  json      to make JSON files"
 
26
        @echo "  htmlhelp  to make HTML files and a HTML help project"
 
27
        @echo "  qthelp    to make HTML files and a qthelp project"
 
28
        @echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
 
29
        @echo "  changes   to make an overview of all changed/added/deprecated items"
 
30
        @echo "  linkcheck to check all external links for integrity"
 
31
        @echo "  doctest   to run all doctests embedded in the documentation (if enabled)"
 
32
 
 
33
clean:
 
34
        -rm -rf $(BUILDDIR)/*
 
35
        -rm -rf ./html/*
 
36
 
 
37
html:
 
38
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 
39
        @echo
 
40
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
41
 
 
42
dirhtml:
 
43
        $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
 
44
        @echo
 
45
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
 
46
 
 
47
text:
 
48
        $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
 
49
        @echo
 
50
        @echo "Build finished. The text pages are in $(BUILDDIR)/text."
 
51
 
 
52
pickle:
 
53
        $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
 
54
        @echo
 
55
        @echo "Build finished; now you can process the pickle files."
 
56
 
 
57
json:
 
58
        $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
 
59
        @echo
 
60
        @echo "Build finished; now you can process the JSON files."
 
61
 
 
62
htmlhelp:
 
63
        $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
 
64
        @echo
 
65
        @echo "Build finished; now you can run HTML Help Workshop with the" \
 
66
              ".hhp project file in $(BUILDDIR)/htmlhelp."
 
67
 
 
68
qthelp:
 
69
        $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
 
70
        @echo
 
71
        @echo "Build finished; now you can run "qcollectiongenerator" with the" \
 
72
              ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
 
73
        @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/psycopg.qhcp"
 
74
        @echo "To view the help file:"
 
75
        @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/psycopg.qhc"
 
76
 
 
77
latex:
 
78
        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
 
79
        @echo
 
80
        @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
 
81
        @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
 
82
              "run these through (pdf)latex."
 
83
 
 
84
changes:
 
85
        $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
 
86
        @echo
 
87
        @echo "The overview file is in $(BUILDDIR)/changes."
 
88
 
 
89
linkcheck:
 
90
        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
 
91
        @echo
 
92
        @echo "Link check complete; look for any errors in the above output " \
 
93
              "or in $(BUILDDIR)/linkcheck/output.txt."
 
94
 
 
95
doctest:
 
96
        PSYCOPG2_DSN=$(PSYCOPG2_DSN) \
 
97
        $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
 
98
        @echo "Testing of doctests in the sources finished, look at the " \
 
99
              "results in $(BUILDDIR)/doctest/output.txt."