~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
        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
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
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
 
54
copy_docs: docs
 
55
        copy /Y NEWS win32_bzr.exe\NEWS
 
56
        copy /Y README win32_bzr.exe\README
 
57
        python tools/win32/copy_docs.py
74
58
 
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
80
64
 
81
65
# win32 python's distutils-based installer
82
66
# require to have python interpreter installed on win32
85
69
 
86
70
 
87
71
# 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
 
72
clean_win32:
 
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