~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2007-04-28 15:04:17 UTC
  • mfrom: (2466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070428150417-trp3pi0pzd411pu4
[merge] bzr.dev 2466

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
21
 
 
22
 
 
23
 
all:
24
 
 
25
 
check:
 
20
.PHONY: all clean extensions pyflakes api-docs
 
21
 
 
22
all: extensions
 
23
 
 
24
extensions:
 
25
        @echo "building extension modules."
 
26
        python setup.py build_ext -i
 
27
 
 
28
check: extensions
26
29
        python -Werror ./bzr selftest -v $(tests)
27
30
        @echo "Running all tests with no locale."
28
31
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
41
44
        pyflakes bzrlib | grep -v ' imported but unused'
42
45
 
43
46
clean:
44
 
        ./setup.py clean
 
47
        python setup.py clean
45
48
        -find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
46
49
        rm -rf test????.tmp
47
50
 
90
93
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
91
94
        $(PRETTYDIR)/$*.htm
92
95
 
93
 
doc/bzr_man.txt: bzrlib/builtins.py \
 
96
MAN_DEPENDENCIES = bzrlib/builtins.py \
94
97
                 bzrlib/bundle/commands.py \
95
98
                 bzrlib/conflicts.py \
96
99
                 bzrlib/sign_my_commits.py \
97
100
                 generate_docs.py \
98
101
                 tools/doc_generate/__init__.py \
99
102
                 tools/doc_generate/autodoc_rstx.py
100
 
        python generate_docs.py -o doc/bzr_man.txt rstx
101
 
 
102
 
docs: $(htm_files) doc/HACKING.htm
 
103
 
 
104
doc/bzr_man.txt: $(MAN_DEPENDENCIES)
 
105
        python generate_docs.py -o $@ rstx
 
106
 
 
107
MAN_PAGES = man1/bzr.1
 
108
man1/bzr.1: $(MAN_DEPENDENCIES)
 
109
        python generate_docs.py -o $@ man
 
110
 
 
111
docs: $(htm_files) $(MAN_PAGES) doc/HACKING.htm
103
112
 
104
113
copy-docs: docs
105
114
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
106
115
 
107
116
# clean produced docs
108
117
clean-docs:
109
 
        python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) \
110
 
        $(HTMLDIR) $(PRETTYDIR)
 
118
        python tools/win32/ostools.py remove $(htm_files) \
 
119
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt $(MAN_PAGES)
111
120
 
112
121
 
113
122
# make bzr.exe for win32 with py2exe