| 10 |
10 |
|
| 11 |
11 |
all: clean html html-translations pdf pdf-translations |
| 12 |
12 |
|
| 13 |
|
html: style |
| 14 |
|
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
|
13 |
html: C/translators.xml style |
| 15 |
14 |
xsltproc --xinclude -o ../build/C/index.html $(XUBUNTUXSL_HTML) C/index.xml |
| 16 |
15 |
sed -i 's@\(<p>The contributors to\) this translation of the \(documentation are:</p>\)@\1 the various translations of this \2@' ../build/C/credits-license.html |
| 17 |
16 |
|
| 18 |
|
epub: style-epub |
| 19 |
|
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
|
17 |
epub: C/translators.xml style-epub |
| 20 |
18 |
xsltproc --xinclude -o ../build/C/ /usr/share/xml/docbook/stylesheet/nwalsh/epub3/chunk.xsl C/index.xml |
| 21 |
19 |
sed -i 's@\(<p>The contributors to\) this translation of the \(documentation are:</p>\)@\1 the various translations of this \2@' ../build/C/credits-license.html |
| 22 |
20 |
cd ../build/C; \ |
| 23 |
21 |
zip -0Xq xubuntu-docs.epub mimetype; \ |
| 24 |
22 |
zip -Xr9Dq xubuntu-docs.epub * |
| 25 |
23 |
|
| 26 |
|
pdf: |
| 27 |
|
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
|
24 |
pdf: C/translators.xml |
| 28 |
25 |
xsltproc --stringparam paper.type A4 --xinclude -o fo/C-A4.fo $(XUBUNTUXSL_PDF) C/index.xml |
| 29 |
26 |
sed -i 's@\(>The contributors to\) this translation of the \(documentation are:</\)@\1 the various translations of this \2@' fo/C-A4.fo |
|
27 |
../scripts/pdf-create.sh C |
|
28 |
|
|
29 |
C/translators.xml: |
|
30 |
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
| 30 |
31 |
|
| 31 |
32 |
style: |
| 32 |
33 |
mkdir -p ../build/libs |
| … |
| 64 |
65 |
done |
| 65 |
66 |
../scripts/pdf-create.sh $(TRANSLATIONS) |
| 66 |
67 |
|
| 67 |
|
test: get-translations |
|
68 |
test: C/translators.xml translate |
| 68 |
69 |
set -e; \ |
| 69 |
70 |
for dir in C $(TRANSLATIONS); do \ |
| 70 |
71 |
../scripts/validate.sh $$dir/index.xml; \ |
| … |
| 93 |
94 |
endif |
| 94 |
95 |
|
| 95 |
96 |
clean: |
| 96 |
|
rm -rf $(TRANSALL) C/translators.xml fo/ style translate |
|
97 |
rm -rf ../build C/translators.xml $(TRANSALL) fo style translate |