X-Git-Url: https://pere.pagekite.me/gitweb/text-infor-lif-else-laula.git/blobdiff_plain/dbfa99dbd3fea6c2bb8f5e4abcf9423d1950c046..32ec965a79e91fc13cd7dcd23e93d3e11ae480a3:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 5fd80d2..5f52b7d 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ DBLATEX_OPTS = \ -p data/pdf.xsl all: $(SOURCE).pdf $(SOURCE).epub $(SOURCE).html \ + $(SOURCE).en.pdf $(SOURCE).en.epub $(SOURCE).en.html \ $(SOURCE).nb.pdf $(SOURCE).nb.epub $(SOURCE).nb.html $(SOURCE).xml: *.adoc $(SOURCE)-docinfo*.xml @@ -41,8 +42,9 @@ $(SOURCE)-fop.pdf: $(SOURCE)-fop.fo po/$(SOURCE).pot: $(SOURCE).xml po4a --no-translations po4a.cfg -po/$(SOURCE).%.po: po/$(SOURCE).pot +po/%.po: po/$(SOURCE).pot po4a --no-translations --msgmerge-opt --no-location po4a.cfg + $(SOURCE).nb.xml: po/$(SOURCE).nb.po $(SOURCE).xml po4a --translate-only $(SOURCE).nb.xml po4a.cfg $(SOURCE).nb.pdf: $(SOURCE).nb.xml Makefile data/pdf.xsl @@ -55,6 +57,18 @@ $(SOURCE).nb.html: $(SOURCE).xml data/stylesheet-html.xsl \ $< +$(SOURCE).en.xml: po/$(SOURCE).en.po $(SOURCE).xml + po4a --translate-only $(SOURCE).en.xml po4a.cfg +$(SOURCE).en.pdf: $(SOURCE).en.xml Makefile data/pdf.xsl + dblatex $(DBLATEX_OPTS) $(SOURCE).en.xml -o $@ +$(SOURCE).en.epub: $(SOURCE).en.xml + dbtoepub $^ +$(SOURCE).en.html: $(SOURCE).xml + xsltproc --encoding UTF-8 \ + --output $@ \ + data/stylesheet-html.xsl \ + $< + clean: $(RM) *~ distclean: