~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2006-10-11 00:23:23 UTC
  • mfrom: (2070 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2071.
  • Revision ID: john@arbash-meinel.com-20061011002323-82ba88c293d7caff
[merge] bzr.dev 2070

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
TAGS: $(tag_files)
31
31
        ctags-exuberant -e $(tag_files)
32
32
 
33
 
tutorial.html: tutorial.txt
34
 
        rest2html tutorial.txt > tutorial.html
 
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
 
 
40
 
 
41
# translate txt docs to html
 
42
doc_dir := doc 
 
43
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir)))
 
44
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
 
45
 
 
46
%.htm: %.txt
 
47
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
 
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
 
57
 
 
58
docs: $(htm_files)
 
59
 
 
60
copy-docs: docs
 
61
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
 
62
 
 
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
# win32 installer for bzr.exe
 
76
installer: exe copy-docs
 
77
        @echo *** Make windows installer
 
78
        cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
 
79
        iscc /Q tools/win32/bzr.iss
 
80
 
 
81
# win32 python's distutils-based installer
 
82
# require to have python interpreter installed on win32
 
83
python-installer: docs
 
84
        python setup.py bdist_wininst --title="Bazaar" --install-script="bzr-win32-bdist-postinstall.py"
 
85
 
 
86
 
 
87
# clean on win32 all installer-related files and directories
 
88
clean-win32:
 
89
        python tools/win32/ostools.py remove build
 
90
        python tools/win32/ostools.py remove win32_bzr.exe
 
91
        python tools/win32/ostools.py remove py2exe.log
 
92
        python tools/win32/ostools.py remove doc/*.htm
 
93
        python tools/win32/ostools.py remove doc/bzr_man.txt
 
94
        python tools/win32/ostools.py remove tools/win32/bzr.iss
 
95
        python tools/win32/ostools.py remove bzr-setup*.exe
 
96
        python tools/win32/ostools.py remove dist