]> pere.pagekite.me Git - text-destroy-surveillance.git/blobdiff - Makefile
Add build rules for pl translation.
[text-destroy-surveillance.git] / Makefile
index aba0ac65c08c4fc0d5a323ca7d12485504b0d348..ed72e8d25f8432ff56198d786c70b139d5d7bdca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 SOURCE=how-to-destroy-surveillance-capitalism
 GENERATED = $(SOURCE).xml $(SOURCE).pdf $(SOURCE).html $(SOURCE).epub \
-       $(SOURCE).nb.xml $(SOURCE).nb.pdf $(SOURCE).nb.html $(SOURCE).nb.epub
+       $(SOURCE).nb.xml $(SOURCE).nb.pdf $(SOURCE).nb.html $(SOURCE).nb.epub \
+       $(SOURCE).pl.xml $(SOURCE).pl.pdf $(SOURCE).pl.html $(SOURCE).pl.epub
 
 PANDOC_OPTS = \
   -t docbook4
@@ -39,6 +40,11 @@ $(SOURCE).nb.xml: po/$(SOURCE).nb.po $(SOURCE).xml
 $(SOURCE).nb.pdf: $(SOURCE).nb.xml Makefile pdf.xsl
        dblatex $(DBLATEX_OPTS) $(SOURCE).nb.xml -o $@
 
+$(SOURCE).pl.xml: po/$(SOURCE).pl.po $(SOURCE).xml
+       po4a --translate-only $(SOURCE).pl.xml po4a.cfg
+$(SOURCE).pl.pdf: $(SOURCE).pl.xml Makefile pdf.xsl
+       dblatex $(DBLATEX_OPTS) $(SOURCE).pl.xml -o $@
+
 .xml.epub:
        dbtoepub -s epub.xsl $^ -o $@