~openerp-chinese-team/openobject-doc/Chinese-init

« back to all changes in this revision

Viewing changes to i18n/zh_CN/Makefile

  • Committer: JoshuaJan
  • Date: 2012-12-04 01:36:44 UTC
  • Revision ID: popkar77@gmail.com-20121204013644-k25kpyac672wxe22
Chinese initialization

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for Sphinx documentation
 
2
#
 
3
 
 
4
# You can set these variables from the command line.
 
5
SPHINXOPTS    =
 
6
SPHINXBUILD   = sphinx-build
 
7
#PAPER         = a4
 
8
PAPER         =
 
9
BUILDDIR      = build
 
10
 
 
11
# Internal variables.
 
12
PAPEROPT_a4     = -D latex_paper_size=a4
 
13
PAPEROPT_letter = -D latex_paper_size=letter
 
14
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
 
15
 
 
16
# I18N stuff:
 
17
BUILDI18N     = ./build_i18n.py
 
18
LANG          = 
 
19
 
 
20
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck i18n
 
21
 
 
22
help:
 
23
        @echo "Please use \`make <target>' where <target> is one of"
 
24
        @echo "  html                  to make standalone HTML files"
 
25
        @echo "  pickle                to make pickle files"
 
26
        @echo "  json                  to make JSON files"
 
27
        @echo "  htmlhelp              to make HTML files and a HTML help project"
 
28
        @echo "  latex                 to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
 
29
        @echo "  changes               to make an overview over all changed/added/deprecated items"
 
30
        @echo "  linkcheck             to check all external links for integrity"
 
31
        @echo "  i18n LANG=<your_lang> to convert untranslated sources to translatable templates"
 
32
 
 
33
clean:
 
34
        -rm -rf $(BUILDDIR)/*
 
35
 
 
36
html:
 
37
        mkdir -p build/html build/doctrees
 
38
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
 
39
        ./copy_images.sh
 
40
        cp ./index.php build/html
 
41
        @echo
 
42
        @echo "Build finished. The HTML pages are in build/html."
 
43
 
 
44
pickle:
 
45
        mkdir -p build/pickle build/doctrees
 
46
        $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
 
47
        @echo
 
48
        @echo "Build finished; now you can process the pickle files."
 
49
 
 
50
web: pickle
 
51
 
 
52
json:
 
53
        mkdir -p build/json build/doctrees
 
54
        $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json
 
55
        @echo
 
56
        @echo "Build finished; now you can process the JSON files."
 
57
 
 
58
htmlhelp:
 
59
        mkdir -p build/htmlhelp build/doctrees
 
60
        $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
 
61
        @echo
 
62
        @echo "Build finished; now you can run HTML Help Workshop with the" \
 
63
              ".hhp project file in build/htmlhelp."
 
64
 
 
65
latex:
 
66
        mkdir -p build/latex build/doctrees
 
67
        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
 
68
        cp texfiles/howto.cls build/latex
 
69
        @echo
 
70
        @echo "Build finished; the LaTeX files are in build/latex."
 
71
        @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
 
72
 
 
73
latexpdf:
 
74
        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
 
75
        @echo "Running LaTeX files through pdflatex..."
 
76
        make -C $(BUILDDIR)/latex all-pdf
 
77
        @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
 
78
 
 
79
text:
 
80
        $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
 
81
        @echo
 
82
        @echo "Build finished. The text files are in $(BUILDDIR)/text."
 
83
 
 
84
man:
 
85
        $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
 
86
        @echo
 
87
        @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
 
88
 
 
89
changes:
 
90
        mkdir -p build/changes build/doctrees
 
91
        $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
 
92
        @echo
 
93
        @echo "The overview file is in build/changes."
 
94
 
 
95
linkcheck:
 
96
        mkdir -p build/linkcheck build/doctrees
 
97
        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
 
98
        @echo
 
99
        @echo "Link check complete; look for any errors in the above output " \
 
100
              "or in build/linkcheck/output.txt."
 
101
 
 
102
i18n:
 
103
        $(BUILDI18N) ${LANG}
 
104
 
 
105
cleani18n:
 
106
        -rm -rf i18n/*/build/*
 
107