/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2006-09-20 14:51:03 UTC
  • mfrom: (0.8.23 version_info)
  • mto: This revision was merged to the branch mainline in revision 2028.
  • Revision ID: john@arbash-meinel.com-20060920145103-02725c6d6c886040
[merge] version-info plugin, and cleanup for layout in bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
all:
2
2
 
3
3
check:
4
 
        python -Werror ./bzr selftest -v $(tests)
 
4
        ./bzr selftest -v $(tests)
5
5
        @echo "Running all tests with no locale."
6
6
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
7
 
        python -O -Werror ./bzr selftest -v $(tests)
8
7
 
9
8
check-msgeditor:
10
9
        ./bzr --no-plugins selftest -v msgeditor
19
18
        pyflakes bzrlib | grep -v ' imported but unused'
20
19
 
21
20
clean:
22
 
        python setup.py clean
 
21
        ./setup.py clean
23
22
        -find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
24
23
        rm -rf test????.tmp
25
24
 
34
33
 
35
34
# Produce HTML docs to upload on Canonical server
36
35
HTMLDIR := html_docs
37
 
PRETTYDIR := pretty_docs
38
36
 
39
37
html-docs: docs
40
38
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
42
40
 
43
41
# translate txt docs to html
44
42
doc_dir := doc 
45
 
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
46
 
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) 
47
 
 
48
 
pretty-html-docs: pretty_files
49
 
 
50
 
pretty_docs:
51
 
        python -c "import os; os.mkdir('$(PRETTYDIR)')"
52
 
 
53
 
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
54
 
 
55
 
doc/HACKING.htm: HACKING
56
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css HACKING doc/HACKING.htm
57
 
 
58
 
doc/%.htm: doc/%.txt 
59
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css doc/$*.txt doc/$*.htm
60
 
 
61
 
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
62
 
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
63
 
        $(PRETTYDIR)/$*.htm
64
 
 
65
 
MAN_DEPENDENCIES = bzrlib/builtins.py \
 
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 \
66
50
                 bzrlib/bundle/commands.py \
67
51
                 bzrlib/conflicts.py \
68
52
                 bzrlib/sign_my_commits.py \
69
53
                 generate_docs.py \
70
54
                 tools/doc_generate/__init__.py \
71
55
                 tools/doc_generate/autodoc_rstx.py
72
 
 
73
 
doc/bzr_man.txt: $(MAN_DEPENDENCIES)
74
 
        python generate_docs.py -o $@ rstx
75
 
 
76
 
MAN_PAGES = man1/bzr.1
77
 
man1/bzr.1: $(MAN_DEPENDENCIES)
78
 
        python generate_docs.py -o $@ man
79
 
 
80
 
docs: $(htm_files) $(MAN_PAGES) doc/HACKING.htm
 
56
        python generate_docs.py -o doc/bzr_man.txt rstx
 
57
 
 
58
docs: $(htm_files)
81
59
 
82
60
copy-docs: docs
83
61
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
84
62
 
85
63
# clean produced docs
86
64
clean-docs:
87
 
        python tools/win32/ostools.py remove $(htm_files) \
88
 
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt $(MAN_PAGES)
 
65
        python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) $(HTMLDIR)
89
66
 
90
67
 
91
68
# make bzr.exe for win32 with py2exe
104
81
# win32 python's distutils-based installer
105
82
# require to have python interpreter installed on win32
106
83
python-installer: docs
107
 
        python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
 
84
        python setup.py bdist_wininst --title="Bazaar" --install-script="bzr-win32-bdist-postinstall.py"
108
85
 
109
86
 
110
87
# clean on win32 all installer-related files and directories
116
93
        python tools/win32/ostools.py remove doc/bzr_man.txt
117
94
        python tools/win32/ostools.py remove tools/win32/bzr.iss
118
95
        python tools/win32/ostools.py remove bzr-setup*.exe
119
 
        python tools/win32/ostools.py remove bzr-*win32.exe
120
96
        python tools/win32/ostools.py remove dist