equal
deleted
inserted
replaced
9 SPHINXOPTS = |
9 SPHINXOPTS = |
10 SPHINXBUILD = sphinx-build |
10 SPHINXBUILD = sphinx-build |
11 PAPER = |
11 PAPER = |
12 #BUILDDIR = build |
12 #BUILDDIR = build |
13 BUILDDIR = ~/tmp/cwdoc |
13 BUILDDIR = ~/tmp/cwdoc |
|
14 CWDIR = ../../.. |
|
15 JSDIR = ${CWDIR}/web/data |
|
16 JSTORST = ${CWDIR}/doc/tools/pyjsrest.py |
|
17 BUILDJS = devweb/js_api |
14 |
18 |
15 # Internal variables for sphinx |
19 # Internal variables for sphinx |
16 PAPEROPT_a4 = -D latex_paper_size=a4 |
20 PAPEROPT_a4 = -D latex_paper_size=a4 |
17 PAPEROPT_letter = -D latex_paper_size=letter |
21 PAPEROPT_letter = -D latex_paper_size=letter |
18 ALLSPHINXOPTS = -d ${BUILDDIR}/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . |
22 ALLSPHINXOPTS = -d ${BUILDDIR}/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . |
|
23 |
19 |
24 |
20 |
25 |
21 .PHONY: help clean html web pickle htmlhelp latex changes linkcheck |
26 .PHONY: help clean html web pickle htmlhelp latex changes linkcheck |
22 |
27 |
23 help: |
28 help: |
34 |
39 |
35 clean: |
40 clean: |
36 rm -rf apidoc/ |
41 rm -rf apidoc/ |
37 rm -f *.html |
42 rm -f *.html |
38 -rm -rf ${BUILDDIR}/* |
43 -rm -rf ${BUILDDIR}/* |
|
44 -rm -rf ${BUILDJS} |
39 |
45 |
40 all: ${TARGET} apidoc html |
46 all: ${TARGET} apidoc html |
41 |
47 |
42 %.html: %.txt |
48 %.html: %.txt |
43 ${MKHTML} ${MKHTMLOPTS} $< |
49 ${MKHTML} ${MKHTMLOPTS} $< |
46 # epydoc --html -o epydoc/ -n ../server/*.py ../core/*.py ../common/*.py ../server/*/*.py ../modpython/*/*.py ../common/*/*.py |
52 # epydoc --html -o epydoc/ -n ../server/*.py ../core/*.py ../common/*.py ../server/*/*.py ../modpython/*/*.py ../common/*/*.py |
47 apidoc: |
53 apidoc: |
48 epydoc --html -o apidoc -n "cubicweb" --exclude=setup --exclude=__pkginfo__ ../../../ |
54 epydoc --html -o apidoc -n "cubicweb" --exclude=setup --exclude=__pkginfo__ ../../../ |
49 |
55 |
50 # run sphinx ### |
56 # run sphinx ### |
51 html: |
57 html: js |
52 mkdir -p ${BUILDDIR}/html ${BUILDDIR}/doctrees |
58 mkdir -p ${BUILDDIR}/html ${BUILDDIR}/doctrees |
53 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ${BUILDDIR}/html |
59 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ${BUILDDIR}/html |
54 @echo |
60 @echo |
55 @echo "Build finished. The HTML pages are in ${BUILDDIR}/html." |
61 @echo "Build finished. The HTML pages are in ${BUILDDIR}/html." |
|
62 |
|
63 js: |
|
64 mkdir -p ${BUILDJS} |
|
65 $(JSTORST) -p ${JSDIR} -o ${BUILDJS} |
56 |
66 |
57 pickle: |
67 pickle: |
58 mkdir -p ${BUILDDIR}/pickle ${BUILDDIR}/doctrees |
68 mkdir -p ${BUILDDIR}/pickle ${BUILDDIR}/doctrees |
59 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) ${BUILDDIR}/pickle |
69 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) ${BUILDDIR}/pickle |
60 @echo |
70 @echo |