1
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
# set PRETTY to get docs that look like the Bazaar web site
21
rst2html := $(PYTHON) ../../tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid
23
rst2html := $(PYTHON) ../../tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
26
# translate txt docs to html
28
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) \
29
guia-usuario/index.txt \
30
mini-tutorial/index.txt \
34
referencia-rapida/referencia-rapida.svg \
35
referencia-rapida/referencia-rapida.png \
36
referencia-rapida/referencia-rapida.pdf \
37
$(wildcard guia-usuario/images/*.png)
38
htm_files := $(patsubst %.txt, %.html, $(txt_files))
40
guia-usuario/index.html: $(wildcard $(addsuffix /*.txt, guia-usuario))
41
$(rst2html) --stylesheet=../../default.css guia-usuario/index.txt $@
43
../index.es.html: ../index.es.txt
44
$(rst2html) --stylesheet=default.css $< $@
47
$(rst2html) --stylesheet=../../default.css $< $@
50
derived_web_docs = $(htm_files)
51
WEB_DOCS = $(derived_web_docs) $(non_txt_files)
52
ALL_DOCS = $(derived_web_docs)
54
# the main target to build all the docs
56
# produce a tree containing just the final docs, ready for uploading to the web
59
$(PYTHON) ../../tools/win32/ostools.py copytree $(WEB_DOCS) $(HTMLDIR)
63
$(PYTHON) ../../tools/win32/ostools.py remove $(ALL_DOCS) \
64
$(HTMLDIR) $(derived_txt_files)