~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-26 21:11:03 UTC
  • mfrom: (2447.1.7 bundle_empty_properties)
  • Revision ID: pqm@pqm.ubuntu.com-20070426211103-h84prqh7a4ad3ez2
(John Arbash Meinel) Fix bug #109613 by teaching Bundle how to properly read/write revision properties with no value.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        @echo "building extension modules."
26
26
        python setup.py build_ext -i
27
27
 
28
 
check: docs extensions
 
28
check: extensions
29
29
        python -Werror ./bzr selftest -v $(tests)
30
30
        @echo "Running all tests with no locale."
31
31
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
75
75
doc_dir := doc 
76
76
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
77
77
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) 
78
 
dev_txt_files := $(wildcard $(addsuffix /*.txt, doc/developers))
79
 
dev_htm_files := $(patsubst %.txt, %.htm, $(dev_txt_files)) 
80
78
 
81
79
pretty-html-docs: pretty_files
82
80
 
85
83
 
86
84
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
87
85
 
88
 
doc/developers/%.htm: doc/developers/%.txt
89
 
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
90
 
 
91
 
doc/developers/HACKING.htm: doc/developers/HACKING
92
 
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
93
 
 
94
 
%.htm: %.txt
95
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css --footnote-references=superscript $< $@
 
86
doc/HACKING.htm: HACKING
 
87
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css HACKING doc/HACKING.htm
 
88
 
 
89
doc/%.htm: doc/%.txt 
 
90
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css doc/$*.txt doc/$*.htm
96
91
 
97
92
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
98
93
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
113
108
man1/bzr.1: $(MAN_DEPENDENCIES)
114
109
        python generate_docs.py -o $@ man
115
110
 
116
 
ALL_DOCS = $(htm_files) $(MAN_PAGES) doc/developers/HACKING.htm $(dev_htm_files) doc/developers/performance.png
117
 
docs: $(ALL_DOCS)
 
111
docs: $(htm_files) $(MAN_PAGES) doc/HACKING.htm
118
112
 
119
113
copy-docs: docs
120
 
        python tools/win32/ostools.py copytodir $(htm_files) \
121
 
                doc/default.css NEWS README \
122
 
                win32_bzr.exe/doc
123
 
        python tools/win32/ostools.py copytodir doc/developers/HACKING.htm \
124
 
                $(dev_htm_files) \
125
 
                win32_bzr.exe/doc/developers
 
114
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
126
115
 
127
116
# clean produced docs
128
117
clean-docs:
129
 
        python tools/win32/ostools.py remove $(ALL_DOCS) \
130
 
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt doc/developers/performance.png
131
 
 
132
 
 
133
 
# build a png of our performance task list
134
 
doc/developers/performance.png: doc/developers/performance.dot
135
 
        @echo Generating $@
136
 
        @dot -Tpng $< -o$@ || echo "Dot not installed; skipping generation of $@"
 
118
        python tools/win32/ostools.py remove $(htm_files) \
 
119
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt $(MAN_PAGES)
137
120
 
138
121
 
139
122
# make bzr.exe for win32 with py2exe
161
144
        python tools/win32/ostools.py remove win32_bzr.exe
162
145
        python tools/win32/ostools.py remove py2exe.log
163
146
        python tools/win32/ostools.py remove doc/*.htm
164
 
        python tools/win32/ostools.py remove doc/developers/*.htm
165
147
        python tools/win32/ostools.py remove doc/bzr_man.txt
166
148
        python tools/win32/ostools.py remove tools/win32/bzr.iss
167
149
        python tools/win32/ostools.py remove bzr-setup*.exe