31
31
ctags-exuberant -e $(tag_files)
33
tutorial.html: tutorial.txt
34
rest2html tutorial.txt > tutorial.html
34
# make bzr.exe for win32 with py2exe
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
41
# translate txt docs to html
43
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir)))
44
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
47
rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
50
generate_docs.py -o doc/bzr_man.txt rstx
55
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README win32_bzr.exe/doc
57
# win32 installer for bzr.exe
58
installer: exe copy_docs
59
@echo *** Make windows installer
60
cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
61
iscc /Q tools/win32/bzr.iss
63
# win32 python's distutils-based installer
64
# require to have python interpreter installed on win32
65
python-installer: docs
66
python setup.py bdist_wininst --title="Bazaar" --install-script="bzr-win32-bdist-postinstall.py"
69
# clean on win32 all installer-related files and directories
71
python tools/win32/ostools.py remove build
72
python tools/win32/ostools.py remove win32_bzr.exe
73
python tools/win32/ostools.py remove py2exe.log
74
python tools/win32/ostools.py remove doc/*.htm
75
python tools/win32/ostools.py remove doc/bzr_man.txt
76
python tools/win32/ostools.py remove tools/win32/bzr.iss
77
python tools/win32/ostools.py remove bzr-setup*.exe
78
python tools/win32/ostools.py remove dist