~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Andrew Bennetts
  • Date: 2009-10-26 06:44:40 UTC
  • mfrom: (4634.77.9 2.0)
  • mto: This revision was merged to the branch mainline in revision 4770.
  • Revision ID: andrew.bennetts@canonical.com-20091026064440-06u7tpg7l6sjkh8h
Merge lp:bzr/2.0 into lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
### Documentation Website ###
173
173
 
174
174
# Where to build the website
175
 
DOC_WEBSITE_BUILD := build_doc_website
 
175
DOC_WEBSITE_BUILD = build_doc_website
176
176
 
177
177
# Build and package docs into a website, complete with downloads.
178
178
doc-website: html-sphinx pdf-sphinx
188
188
# support our "plain" html documentation so that Sphinx is not a hard
189
189
# dependency for packagers on older platforms.
190
190
 
191
 
rst2html := $(PYTHON) tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
 
191
rst2html = $(PYTHON) tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
192
192
 
193
193
# translate txt docs to html
194
 
derived_txt_files := \
 
194
derived_txt_files = \
195
195
        doc/en/user-reference/bzr_man.txt \
196
196
        doc/en/release-notes/NEWS.txt
197
 
txt_all := \
 
197
txt_all = \
198
198
        doc/en/tutorials/tutorial.txt \
199
199
        doc/en/tutorials/using_bazaar_with_launchpad.txt \
200
200
        doc/en/tutorials/centralized_workflow.txt \
207
207
        doc/en/upgrade-guide/index.txt \
208
208
        doc/index.txt \
209
209
        $(wildcard doc/index.*.txt)
210
 
txt_nohtml := \
 
210
txt_nohtml = \
211
211
        doc/en/user-guide/index.txt \
212
212
        doc/es/user-guide/index.txt \
213
213
        doc/ru/user-guide/index.txt
214
 
txt_files := $(filter-out $(txt_nohtml), $(txt_all))
215
 
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
 
214
txt_files = $(filter-out $(txt_nohtml), $(txt_all))
 
215
htm_files = $(patsubst %.txt, %.html, $(txt_files)) 
216
216
 
217
 
non_txt_files := \
 
217
non_txt_files = \
218
218
       doc/default.css \
219
219
       $(wildcard doc/*/bzr-en-quick-reference.svg) \
220
220
       $(wildcard doc/*/bzr-en-quick-reference.png) \
229
229
 
230
230
# doc/developers/*.txt files that should *not* be individually
231
231
# converted to HTML
232
 
dev_txt_nohtml := \
 
232
dev_txt_nohtml = \
233
233
        doc/developers/add.txt \
234
234
        doc/developers/annotate.txt \
235
235
        doc/developers/bundle-creation.txt \
255
255
        doc/developers/status.txt \
256
256
        doc/developers/uncommit.txt
257
257
 
258
 
dev_txt_all := $(wildcard $(addsuffix /*.txt, doc/developers))
259
 
dev_txt_files := $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
260
 
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
 
258
dev_txt_all = $(wildcard $(addsuffix /*.txt, doc/developers))
 
259
dev_txt_files = $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
 
260
dev_htm_files = $(patsubst %.txt, %.html, $(dev_txt_files)) 
261
261
 
262
262
doc/en/user-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide)) 
263
263
        $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
299
299
docs-plain: $(ALL_DOCS)
300
300
 
301
301
# produce a tree containing just the final docs, ready for uploading to the web
302
 
HTMLDIR := html_docs
 
302
HTMLDIR = html_docs
303
303
html-plain: docs-plain
304
304
        $(PYTHON) tools/win32/ostools.py copytree $(WEB_DOCS) $(HTMLDIR)
305
305
 
325
325
# These are files that need to be copied into the build location to boostrap
326
326
# the build process.
327
327
# Note that the path is relative to tools/win32
328
 
BUILDOUT_FILES := buildout.cfg \
 
328
BUILDOUT_FILES = buildout.cfg \
329
329
        buildout-templates/bin/build-installer.bat.in \
330
330
        ostools.py bootstrap.py
331
331