author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Thu, 13 Nov 2008 02:38:34 +0100 | |
changeset 53 | 537ad3e8e461 |
parent 50 | d642f43eb87d |
child 56 | 3a8576dd00d8 |
permissions | -rw-r--r-- |
53
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
1 |
MKHTML=mkdoc |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
2 |
MKHTMLOPTS=--doctype article --target html --stylesheet standard |
0 | 3 |
SRC=. |
4 |
||
5 |
TXTFILES:= $(wildcard *.txt) |
|
6 |
TARGET := $(TXTFILES:.txt=.html) |
|
7 |
||
53
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
8 |
# You can set these sphinx variables from the command line. |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
9 |
SPHINXOPTS = |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
10 |
SPHINXBUILD = sphinx-build |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
11 |
PAPER = |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
12 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
13 |
# Internal variables for sphinx |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
14 |
PAPEROPT_a4 = -D latex_paper_size=a4 |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
15 |
PAPEROPT_letter = -D latex_paper_size=letter |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
16 |
ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
17 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
18 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
19 |
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck |
0 | 20 |
|
53
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
21 |
help: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
22 |
@echo "Please use \`make <target>' where <target> is one of" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
23 |
@echo " all to make standalone HTML files, developer manual and API doc" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
24 |
@echo " apidoc to make API doc" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
25 |
@echo " html to make standalone HTML files" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
26 |
@echo "--- " |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
27 |
@echo " pickle to make pickle files (usable by e.g. sphinx-web)" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
28 |
@echo " htmlhelp to make HTML files and a HTML help project" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
29 |
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
30 |
@echo " changes to make an overview over all changed/added/deprecated items" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
31 |
@echo " linkcheck to check all external links for integrity" |
0 | 32 |
|
53
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
33 |
clean: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
34 |
rm -rf apidoc/ |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
35 |
rm -f *.html |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
36 |
cd devmanual_fr && make clean |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
37 |
-rm -rf build/* |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
38 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
39 |
all: ${TARGET} devmanual apidoc html |
0 | 40 |
|
41 |
%.html: %.txt |
|
53
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
42 |
${MKHTML} ${MKHTMLOPTS} $< |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
43 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
44 |
devmanual: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
45 |
cd devmanual_fr && make |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
46 |
#apydoc: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
47 |
# epydoc --html -o epydoc/ -n ../server/*.py ../core/*.py ../common/*.py ../server/*/*.py ../modpython/*/*.py ../common/*/*.py |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
48 |
apidoc: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
49 |
epydoc --html -o apidoc -n "cubicweb" --exclude=setup --exclude=__pkginfo__ ../ |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
50 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
51 |
# run sphinx ### |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
52 |
html: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
53 |
mkdir -p build/html build/doctrees |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
54 |
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
55 |
@echo |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
56 |
@echo "Build finished. The HTML pages are in build/html." |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
57 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
58 |
pickle: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
59 |
mkdir -p build/pickle build/doctrees |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
60 |
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
61 |
@echo |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
62 |
@echo "Build finished; now you can process the pickle files or run" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
63 |
@echo " sphinx-web build/pickle" |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
64 |
@echo "to start the sphinx-web server." |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
65 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
66 |
web: pickle |
0 | 67 |
|
53
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
68 |
htmlhelp: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
69 |
mkdir -p build/htmlhelp build/doctrees |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
70 |
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
71 |
@echo |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
72 |
@echo "Build finished; now you can run HTML Help Workshop with the" \ |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
73 |
".hhp project file in build/htmlhelp." |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
74 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
75 |
latex: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
76 |
mkdir -p build/latex build/doctrees |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
77 |
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
78 |
@echo |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
79 |
@echo "Build finished; the LaTeX files are in build/latex." |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
80 |
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
81 |
"run these through (pdf)latex." |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
82 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
83 |
changes: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
84 |
mkdir -p build/changes build/doctrees |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
85 |
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
86 |
@echo |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
87 |
@echo "The overview file is in build/changes." |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
88 |
|
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
89 |
linkcheck: |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
90 |
mkdir -p build/linkcheck build/doctrees |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
91 |
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
92 |
@echo |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
93 |
@echo "Link check complete; look for any errors in the above output " \ |
537ad3e8e461
[doc] moved makefile. corrected paths to images.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
50
diff
changeset
|
94 |
"or in build/linkcheck/output.txt." |