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
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
# 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
copy /Y NEWS win32_bzr.exe\NEWS
56
copy /Y README win32_bzr.exe\README
57
python tools/win32/copy_docs.py
59
# win32 installer for bzr.exe
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
65
# clean on win32 all installer-related files and directories
67
if exist build rmdir /S /Q build
68
if exist win32_bzr.exe rmdir /S /Q win32_bzr.exe
69
if exist py2exe.log del /Q py2exe.log
70
if exist doc\*.htm del /Q doc\*.htm
71
if exist doc\bzr_man.txt del /Q doc\bzr_man.txt
72
if exist tools\win32\bzr.iss del /Q tools\win32\bzr.iss
73
if exist bzr-setup*.exe del /Q bzr-setup*.exe