31
31
ctags-exuberant -e $(tag_files)
34
# Produce HTML docs to upload on Canonical server
38
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
34
# make bzr.exe for win32 with py2exe
37
setup.py py2exe > py2exe.log
38
copy /Y tools\win32\start_bzr.bat win32_bzr.exe\start_bzr.bat
39
copy /Y tools\win32\bazaar.url win32_bzr.exe\bazaar.url
41
41
# translate txt docs to html
44
44
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
47
python tools/rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
47
rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
49
doc/bzr_man.txt: bzrlib/builtins.py \
50
bzrlib/bundle/commands.py \
52
bzrlib/sign_my_commits.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
50
generate_docs.py -o doc/bzr_man.txt rstx
61
python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README win32_bzr.exe/doc
65
python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) $(HTMLDIR)
68
# make bzr.exe for win32 with py2exe
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
55
copy /Y NEWS win32_bzr.exe\NEWS
56
copy /Y README win32_bzr.exe\README
57
python tools/win32/copy_docs.py
75
59
# 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
60
installer: exe copy_docs
61
@echo Make windows installer
62
cog.py -d -o tools\win32\bzr.iss tools\win32\bzr.iss.cog
63
"C:\Program Files\Inno Setup 5\iscc" /Q tools\win32\bzr.iss
81
65
# win32 python's distutils-based installer
82
66
# require to have python interpreter installed on win32
87
71
# clean on win32 all installer-related files and directories
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
73
if exist build rmdir /S /Q build
74
if exist win32_bzr.exe rmdir /S /Q win32_bzr.exe
75
if exist py2exe.log del /Q py2exe.log
76
if exist doc\*.htm del /Q doc\*.htm
77
if exist doc\bzr_man.txt del /Q doc\bzr_man.txt
78
if exist tools\win32\bzr.iss del /Q tools\win32\bzr.iss
79
if exist bzr-setup*.exe del /Q bzr-setup*.exe
80
if exist dist rmdir /S /Q dist