blob: d0b6ed4159ea90faf4a9b4ca7f178708fef865bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
######################################################################
## Different doc packages need different things. Some have to
## import the source, others just need to parse it. The hacks in
## this file attempt to make this happen for some of the common doc
## systems.
######################################################################
export PYTHON=python
export PRODUCT_DIR=${CURDIR}/../
export PYTHONPATH=`${PYTHON} ./getbuildpath.py`
# If you have epydoc installed feel free
#DOC_TARGETS += epydoc_pdf
DOC_TARGETS += pydoc
all: doc
epydoc_html:
@epydoc -qq --html -o ${PRODUCT_DIR}/docs ${PYTHONPATH}/${PROJECTNAME}
epydoc_pdf:
@epydoc -qq --pdf -o ${PRODUCT_DIR}/docs ${PYTHONPATH}/${PROJECTNAME}
pydoc:
@${PYTHON} ./writedocs.py ${PRODUCT_DIR}
doc: ${DOC_TARGETS}
clean:
@find . -name "*.pyc" -exec rm {} \;
@find . -name "*~" -exec rm {} \;
@find . -name "${PROJECTNAME}*.html" -exec rm {} \;
@rm -rf index.html epydoc.css public private
@rm -rf api.* *.aux *.tex
|