~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Robert Collins
  • Date: 2007-08-15 01:26:30 UTC
  • mfrom: (2698 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2741.
  • Revision ID: robertc@robertcollins.net-20070815012630-xqjtm5z2c4718n8s
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
# translate txt docs to html
75
75
doc_dir := doc 
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)) 
80
80
 
81
81
pretty-html-docs: pretty_files
82
82
 
83
83
pretty_docs:
84
84
        python -c "import os; os.mkdir('$(PRETTYDIR)')"
85
85
 
86
 
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
87
 
 
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
 
86
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.html, $(txt_files))
 
87
 
 
88
doc/developers/%.html: doc/developers/%.txt
 
89
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
 
90
 
 
91
%.html: %.txt
95
92
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css --footnote-references=superscript $< $@
96
93
 
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 \
99
 
        $(PRETTYDIR)/$*.htm
 
96
        $(PRETTYDIR)/$*.html
100
97
 
101
98
MAN_DEPENDENCIES = bzrlib/builtins.py \
102
99
                 bzrlib/bundle/commands.py \
104
101
                 bzrlib/sign_my_commits.py \
105
102
                 generate_docs.py \
106
103
                 tools/doc_generate/__init__.py \
 
104
                 tools/doc_generate/autodoc_man.py \
107
105
                 tools/doc_generate/autodoc_rstx.py
108
106
 
109
107
doc/bzr_man.txt: $(MAN_DEPENDENCIES)
113
111
man1/bzr.1: $(MAN_DEPENDENCIES)
114
112
        python generate_docs.py -o $@ man
115
113
 
116
 
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
117
115
docs: $(ALL_DOCS)
118
116
 
119
117
copy-docs: docs
120
118
        python tools/win32/ostools.py copytodir $(htm_files) \
121
119
                doc/default.css NEWS README \
122
120
                win32_bzr.exe/doc
123
 
        python tools/win32/ostools.py copytodir doc/developers/HACKING.htm \
124
 
                $(dev_htm_files) \
 
121
        python tools/win32/ostools.py copytodir $(dev_htm_files) \
125
122
                win32_bzr.exe/doc/developers
126
123
 
127
124
# clean produced docs
128
125
clean-docs:
129
126
        python tools/win32/ostools.py remove $(ALL_DOCS) \
130
 
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt doc/developers/performance.png
 
127
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt
131
128
 
132
129
 
133
130
# build a png of our performance task list
158
155
 
159
156
 
160
157
# clean on win32 all installer-related files and directories
161
 
clean-win32:
 
158
clean-win32: clean-docs
162
159
        python tools/win32/ostools.py remove build
163
160
        python tools/win32/ostools.py remove win32_bzr.exe
164
161
        python tools/win32/ostools.py remove py2exe.log
165
 
        python tools/win32/ostools.py remove doc/*.htm
166
 
        python tools/win32/ostools.py remove doc/developers/*.htm
167
162
        python tools/win32/ostools.py remove doc/bzr_man.txt
168
163
        python tools/win32/ostools.py remove tools/win32/bzr.iss
169
164
        python tools/win32/ostools.py remove bzr-setup*.exe