Doc : add export EPUB method
authorBenjamin Renard <bn8@zionetrix.net>
Wed, 13 Aug 2014 00:19:51 +0000 (02:19 +0200)
committerBenjamin Renard <bn8@zionetrix.net>
Wed, 13 Aug 2014 00:19:51 +0000 (02:19 +0200)
doc/exports/Makefile
doc/exports/epub/.gitignore [new file with mode: 0644]
doc/exports/epub/Makefile [new file with mode: 0644]
doc/install/install.docbook

index 3c81608..2ae7563 100644 (file)
@@ -1,6 +1,6 @@
 DOCBOOK_FILE=../LdapSaisie.docbook
 
-all:    html pdf
+all:    html pdf epub
 
 # HTML
 html:          html/LdapSaisie.html
@@ -20,4 +20,13 @@ pdf/LdapSaisie.pdf:
 clean_pdf:
                                cd pdf; make clean
 
-clean:  clean_html clean_pdf
+# EPUB
+epub:          epub/LdapSaisie.epub
+
+epub/LdapSaisie.epub:
+                               cd epub; make epub
+
+clean_epub:
+                               cd epub; make clean
+
+clean:  clean_html clean_pdf clean_epub
diff --git a/doc/exports/epub/.gitignore b/doc/exports/epub/.gitignore
new file mode 100644 (file)
index 0000000..3017459
--- /dev/null
@@ -0,0 +1 @@
+*.epub
diff --git a/doc/exports/epub/Makefile b/doc/exports/epub/Makefile
new file mode 100644 (file)
index 0000000..2f24885
--- /dev/null
@@ -0,0 +1,13 @@
+DOCBOOK_FILE=../../LdapSaisie.docbook
+DBTOEPUB=dbtoepub
+EPUB_FILE=LdapSaisie.epub
+
+all:           epub
+
+epub:          $(EPUB_FILE)
+
+LdapSaisie.epub:       $(DOCBOOK_FILE)
+                       $(DBTOEPUB) -o $(EPUB_FILE) "$(DOCBOOK_FILE)"
+
+clean:
+                               rm -f $(EPUB_FILE)
index 6b60c4a..a19d3c9 100644 (file)
@@ -25,6 +25,7 @@
     <listitem><simpara>la feuille de style <literal>html</literal> XSL de Norman Walsh pour <application>Docbook</application> (fichier <literal>/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl</literal> fournis par le paquet <application>docbook-xsl</application> dans <application>Debian</application>)</simpara></listitem>
     <listitem><simpara><application>xmllint</application> (validation XML) (paquet <application>libxml2-utils</application> dans <application>Debian</application>)</simpara></listitem>
     <listitem><simpara><application>jw</application> (exportation PDF) (paquet <application>docbook-utils</application> dans <application>Debian</application>)</simpara></listitem>
+    <listitem><simpara><application>dbtoepub</application> (exportation EPUB) (paquet <application>dbtoepub</application> dans <application>Debian</application>)</simpara></listitem>
   </itemizedlist>
   </para></note>
 </sect1>