~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2007-04-12 17:49:10 UTC
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070412174910-4m93s90gq6tjk1k4
Since I have epydoc working with lazy imports, make it the default api doc generator.
Also, update Makefile to make it easier to just document one file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# A relatively simple Makefile to assist in building parts of bzr. Mostly for
18
18
# building documentation, etc.
19
19
 
20
 
.PHONY: all clean pyflakes api-docs
 
20
.PHONY: all clean pyflakes api-docs pydoctor-api-docs
21
21
 
22
22
 
23
23
all:
45
45
        -find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
46
46
        rm -rf test????.tmp
47
47
 
 
48
pydoctor-api-docs:
 
49
        mkdir -p api/pydoctor
 
50
        pydoctor -c pydoctor_bzrlib.cfg --make-html
 
51
 
 
52
docfiles = bzr bzrlib
48
53
api-docs:
49
 
        mkdir -p api
50
 
        pydoctor -c pydoctor_bzrlib.cfg --make-html
51
 
 
52
 
epydoc-api-docs:
53
54
        mkdir -p api/epydoc
54
 
        PYTHONPATH=$(PWD) python tools/bzr_epydoc --html -o api/epydoc --docformat 'restructuredtext en' bzr bzrlib
 
55
        PYTHONPATH=$(PWD) python tools/bzr_epydoc --html -o api/epydoc --docformat 'restructuredtext en' $(docfiles)
55
56
 
56
57
 
57
58
# build emacs cross-reference