]> pere.pagekite.me Git - text-infor-lif-else-laula.git/blobdiff - Makefile
Translated using Weblate (Norwegian Bokmål)
[text-infor-lif-else-laula.git] / Makefile
index 0939a0b526af71efacaa6a4b0fff6fa5e8d7ea3b..bad6fad44aca7c49fe97665850d331b177a19c28 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,15 @@ $(SOURCE)-fop.fo: $(SOURCE).xml
 $(SOURCE)-fop.pdf: $(SOURCE)-fop.fo
        fop -c data/fop-params.xconf -fo $(subst .pdf,.fo,$@) -pdf $@ ; \
 
+po/$(SOURCE).pot: $(SOURCE).xml
+       po4a --no-translations po4a.cfg
+po/$(SOURCE).%.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
+       dblatex $(DBLATEX_OPTS) $(SOURCE).nb.xml -o $@
+
 clean:
        $(RM) *~
 distclean: