74
74
# translate txt docs to html
76
76
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
77
htm_files := $(patsubst %.txt, %.htm, $(txt_files))
77
htm_files := $(patsubst %.txt, %.html, $(txt_files))
78
78
dev_txt_files := $(wildcard $(addsuffix /*.txt, doc/developers))
79
dev_htm_files := $(patsubst %.txt, %.htm, $(dev_txt_files))
79
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files))
81
81
pretty-html-docs: pretty_files
84
84
python -c "import os; os.mkdir('$(PRETTYDIR)')"
86
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
88
doc/developers/%.htm: doc/developers/%.txt
89
python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
91
doc/developers/HACKING.htm: doc/developers/HACKING
92
python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
86
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.html, $(txt_files))
88
doc/developers/%.html: doc/developers/%.txt
89
python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
95
92
python tools/rst2html.py --link-stylesheet --stylesheet=default.css --footnote-references=superscript $< $@
97
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
94
$(PRETTYDIR)/%.html: pretty_docs doc/%.txt
98
95
python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
101
98
MAN_DEPENDENCIES = bzrlib/builtins.py \
102
99
bzrlib/bundle/commands.py \
114
111
man1/bzr.1: $(MAN_DEPENDENCIES)
115
112
python generate_docs.py -o $@ man
117
ALL_DOCS = $(htm_files) $(MAN_PAGES) doc/developers/HACKING.htm $(dev_htm_files) doc/developers/performance.png
114
ALL_DOCS = $(htm_files) $(MAN_PAGES) $(dev_htm_files) doc/developers/performance.png
118
115
docs: $(ALL_DOCS)
121
118
python tools/win32/ostools.py copytodir $(htm_files) \
122
119
doc/default.css NEWS README \
123
120
win32_bzr.exe/doc
124
python tools/win32/ostools.py copytodir doc/developers/HACKING.htm \
121
python tools/win32/ostools.py copytodir $(dev_htm_files) \
126
122
win32_bzr.exe/doc/developers
128
124
# clean produced docs
161
157
# clean on win32 all installer-related files and directories
158
clean-win32: clean-docs
163
159
python tools/win32/ostools.py remove build
164
160
python tools/win32/ostools.py remove win32_bzr.exe
165
161
python tools/win32/ostools.py remove py2exe.log
166
python tools/win32/ostools.py remove doc/*.htm
167
python tools/win32/ostools.py remove doc/developers/*.htm
168
162
python tools/win32/ostools.py remove doc/bzr_man.txt
169
163
python tools/win32/ostools.py remove tools/win32/bzr.iss
170
164
python tools/win32/ostools.py remove bzr-setup*.exe