~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Ian Clatworthy
  • Date: 2007-08-10 07:43:06 UTC
  • mto: (2733.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2734.
  • Revision ID: ian.clatworthy@internode.on.net-20070810074306-z03x48acfm8tcw94
teach Makefile and .bzrignore re new doc structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
 
74
74
# translate txt docs to html
75
 
doc_dir := doc 
76
 
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
 
75
derived_txt_files := \
 
76
        doc/en/user-reference/bzr_man.txt \
 
77
        doc/en/developer-guide/HACKING.txt \
 
78
        doc/en/release-notes/NEWS.txt
 
79
doc_dir := doc/en/user-guide
 
80
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) $(derived_txt_files) doc/en/index.txt
77
81
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
78
82
dev_txt_files := $(wildcard $(addsuffix /*.txt, doc/developers))
79
83
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
88
92
doc/developers/%.html: doc/developers/%.txt
89
93
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
90
94
 
 
95
doc/en/index.html: doc/en/index.txt
 
96
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
 
97
 
91
98
%.html: %.txt
92
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css --footnote-references=superscript $< $@
 
99
        python tools/rst2html.py --link-stylesheet --stylesheet=../../default.css --footnote-references=superscript $< $@
93
100
 
94
101
$(PRETTYDIR)/%.html: pretty_docs doc/%.txt
95
102
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
104
111
                 tools/doc_generate/autodoc_man.py \
105
112
                 tools/doc_generate/autodoc_rstx.py
106
113
 
107
 
doc/bzr_man.txt: $(MAN_DEPENDENCIES)
 
114
doc/en/user-reference/bzr_man.txt: $(MAN_DEPENDENCIES)
108
115
        python generate_docs.py -o $@ rstx
109
116
 
 
117
doc/en/developer-guide/HACKING.txt: doc/developers/HACKING.txt
 
118
        python tools/win32/ostools.py copytodir doc/developers/HACKING.txt doc/en/developer-guide
 
119
 
 
120
doc/en/release-notes/NEWS.txt: NEWS
 
121
        python -c "import shutil; shutil.copyfile('$<', '$@')"
 
122
 
110
123
MAN_PAGES = man1/bzr.1
111
124
man1/bzr.1: $(MAN_DEPENDENCIES)
112
125
        python generate_docs.py -o $@ man
124
137
# clean produced docs
125
138
clean-docs:
126
139
        python tools/win32/ostools.py remove $(ALL_DOCS) \
127
 
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt
 
140
        $(HTMLDIR) $(PRETTYDIR) $(derived_txt_files)
128
141
 
129
142
 
130
143
# build a png of our performance task list
159
172
        python tools/win32/ostools.py remove build
160
173
        python tools/win32/ostools.py remove win32_bzr.exe
161
174
        python tools/win32/ostools.py remove py2exe.log
162
 
        python tools/win32/ostools.py remove doc/bzr_man.txt
163
175
        python tools/win32/ostools.py remove tools/win32/bzr.iss
164
176
        python tools/win32/ostools.py remove bzr-setup*.exe
165
177
        python tools/win32/ostools.py remove bzr-*win32.exe