~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

[merge] Hermann Kraus: updates to Bundle exceptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
all:
2
2
 
3
3
check:
4
 
        python -Werror ./bzr selftest -v $(tests)
 
4
        ./bzr selftest -v $(tests)
5
5
        @echo "Running all tests with no locale."
6
6
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
7
7
 
31
31
        ctags-exuberant -e $(tag_files)
32
32
 
33
33
 
34
 
# Produce HTML docs to upload on Canonical server
35
 
HTMLDIR := html_docs
36
 
 
37
 
html-docs: docs
38
 
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
39
 
 
 
34
# make bzr.exe for win32 with py2exe
 
35
exe:
 
36
        @echo *** Make bzr.exe
 
37
        python setup.py py2exe > py2exe.log
 
38
        python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
 
39
        python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
40
40
 
41
41
# translate txt docs to html
42
42
doc_dir := doc 
44
44
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
45
45
 
46
46
%.htm: %.txt
47
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
 
47
        rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
48
48
 
49
 
doc/bzr_man.txt: bzrlib/builtins.py \
50
 
                 bzrlib/bundle/commands.py \
51
 
                 bzrlib/conflicts.py \
52
 
                 bzrlib/sign_my_commits.py \
53
 
                 generate_docs.py \
54
 
                 tools/doc_generate/__init__.py \
55
 
                 tools/doc_generate/autodoc_rstx.py
56
 
        python generate_docs.py -o doc/bzr_man.txt rstx
 
49
doc/bzr_man.txt:
 
50
        generate_docs.py -o doc/bzr_man.txt rstx
57
51
 
58
52
docs: $(htm_files)
59
53
 
60
 
copy-docs: docs
 
54
copy_docs: docs
61
55
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
62
56
 
63
 
# clean produced docs
64
 
clean-docs:
65
 
        python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) $(HTMLDIR)
66
 
 
67
 
 
68
 
# make bzr.exe for win32 with py2exe
69
 
exe:
70
 
        @echo *** Make bzr.exe
71
 
        python setup.py py2exe > py2exe.log
72
 
        python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
73
 
        python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
74
 
 
75
57
# win32 installer for bzr.exe
76
 
installer: exe copy-docs
 
58
installer: exe copy_docs
77
59
        @echo *** Make windows installer
78
60
        cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
79
61
        iscc /Q tools/win32/bzr.iss
85
67
 
86
68
 
87
69
# clean on win32 all installer-related files and directories
88
 
clean-win32:
 
70
clean_win32:
89
71
        python tools/win32/ostools.py remove build
90
72
        python tools/win32/ostools.py remove win32_bzr.exe
91
73
        python tools/win32/ostools.py remove py2exe.log