Paste #d0JFmwElI0kc1C4zpRIf

=== modified file 'Makefile'
Makefile [2015-07-27 23:49:12 +0000]
Makefile [2015-07-27 23:27:56 +0000]
1 1 # Makefile for the Xubuntu Documentation
2 2 # Xubuntu Project <xubuntu-devel@lists.ubuntu.com>
3 3
4 VPATH = desktop-guide
5
6 4 # Include revision number
7 5 ifneq ($(REVNO),)
8 6 VERSION =
57 55 pdf:
58 56 $(MAKE) -C desktop-guide pdf
59 57
60 translate: get-translations
58 translate:
61 59 $(MAKE) -C desktop-guide translate
62 60
63 html-translations: translate
61 html-translations:
64 62 $(MAKE) -C desktop-guide html-translations
65 63
66 pdf-translations: translate
64 pdf-translations:
67 65 $(MAKE) -C desktop-guide pdf-translations
68 66
69 test: get-translations
67 test:
70 68 $(MAKE) -C desktop-guide test
71 69
72 70 src-tarball:
73 # exclude archive, backup, and bzr files
74 tar cvfz xubuntu-doc.tar.gz --exclude="*.tar.gz" --exclude="*~" --exclude "*.bzr*" *
71 # exclude archive, VCS, and backups
72 tar -czf xubuntu-docs.tar.gz --exclude='xubuntu-docs.tar.gz' --exclude-vcs --exclude-backups .
75 73
76 74 clean:
77 75 $(MAKE) -C desktop-guide clean
78 rm -rf build
76 rm -rf build xubuntu-docs.tar.gz
79 77
80 78 .PHONY: startpage
desktop-guide/Makefile [2015-07-27 23:49:12 +0000]
desktop-guide/Makefile [2015-07-27 23:17:56 +0000]
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