X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/afc5fb72d09485d5c48e21b418951585f822dde4..5d93c6338e4831331ad086121f5615dcdbeede06:/Makefile diff --git a/Makefile b/Makefile index 617e941..abc94bf 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,9 @@ XP = xsltproc \ --novalid \ --xinclude data/html.xsl -all: pdf +DBTOEPUB = dbtoepub + +all: pdf epub freeculture.nb.po: freeculture.pot po4a --no-translations --msgmerge-opt --no-location po4a.cfg @@ -28,14 +30,17 @@ freeculture.nb.xml: freeculture.nb.po freeculture.xml po4a --translate-only freeculture.nb.xml po4a.cfg pdf: freeculture.pdf freeculture.nb.pdf +epub: freeculture.epub freeculture.nb.epub +html: freeculture.html freeculture.nb.html %.pdf: %.xml $(DBLATEX) $^ --param=lingua=nb %.html: %.xml $(XP) $^ && mv index.html $@ + %.epub: %.xml - dbtoepub $^ + $(DBTOEPUB) $^ freeculture.xml: GET $(url) | gunzip > freeculture.xml @@ -44,6 +49,7 @@ freeculture.pot: freeculture.xml po4a-gettextize -f docbook -m $^ > $@.new && mv $@.new $@ stats: - msgfmt -o /dev/null --statistics freeculture.nb.po - -.SUFFIXES: .html + ( \ + date +"%Y-%m-%dT%H%M" ; \ + msgfmt -o /dev/null --statistics freeculture.nb.po 2>&1 \ + ) | tee -a stats.txt