~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Alexander Belchenko
  • Date: 2007-08-07 19:33:11 UTC
  • mfrom: (2678 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2685.
  • Revision ID: bialix@ukr.net-20070807193311-76klhk4sldylzucs
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 \
114
111
man1/bzr.1: $(MAN_DEPENDENCIES)
115
112
        python generate_docs.py -o $@ man
116
113
 
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)
119
116
 
120
117
copy-docs: 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 \
125
 
                $(dev_htm_files) \
 
121
        python tools/win32/ostools.py copytodir $(dev_htm_files) \
126
122
                win32_bzr.exe/doc/developers
127
123
 
128
124
# clean produced docs
159
155
 
160
156
 
161
157
# clean on win32 all installer-related files and directories
162
 
clean-win32:
 
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