]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Add build rule for epub.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 10 Jul 2012 08:56:00 +0000 (10:56 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 10 Jul 2012 08:56:00 +0000 (10:56 +0200)
Makefile
README.md

index ced8243d3a8e1405d6776a021ff3717c08df7d4d..617e94120815a9f857d6023e098f597bdd18077e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,12 +34,14 @@ pdf: freeculture.pdf freeculture.nb.pdf
 
 %.html: %.xml
        $(XP) $^ && mv index.html $@
 
 %.html: %.xml
        $(XP) $^ && mv index.html $@
+%.epub: %.xml
+       dbtoepub $^
 
 freeculture.xml:
        GET $(url) | gunzip > freeculture.xml
 
 freeculture.pot: freeculture.xml
 
 freeculture.xml:
        GET $(url) | gunzip > freeculture.xml
 
 freeculture.pot: freeculture.xml
-       po4a-gettextize -f docbook -m $^  > $@
+       po4a-gettextize -f docbook -m $^  > $@.new && mv $@.new $@
 
 stats:
        msgfmt -o /dev/null --statistics freeculture.nb.po
 
 stats:
        msgfmt -o /dev/null --statistics freeculture.nb.po
index 1bdc30d6a481232fe33b9d3a9fc724e877efad0f..d14b11431c1f40b501d039fc4c7c14435af00e1b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,3 +22,10 @@ are needed:
 
   po4a
   dblatex
 
   po4a
   dblatex
+  dbtoepub
+
+Docbook howtos
+--------------
+
+http://developer.gnome.org/gdp-handbook/stable/docbook.html.en
+http://www.docbook.org/tdg/en/html/docbook.html