]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Makefile patch by Petter Reinholdtsenfor the PDF build process. Thanks!
authorGunnar Wolf <gwolf@gwolf.org>
Mon, 31 Jul 2017 18:31:42 +0000 (13:31 -0500)
committerGunnar Wolf <gwolf@gwolf.org>
Mon, 31 Jul 2017 18:31:42 +0000 (13:31 -0500)
Makefile

index c8f8093a1634295b4552a263f3398ec46a6a6fde..293596adf63025eac973fce1b3e30cfd8cdcec44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,15 +30,18 @@ po/mwcc.pot: $(SOURCE).md
            msgmerge $$LANG po/mwcc.pot -U ; \
        done
 
+$(SOURCE).es.md: $(SOURCE).md po/es/mwcc.po
+       po4a-translate -f text -m $(SOURCE).md -p po/es/mwcc.po -l $@ -l $@ -L utf8 -M utf8 -k 20
 
 %.xml: %.md
-       pandoc -o $@ $(PANDOCOPTS) MadewithCreativeCommonsmostup-to-dateversion.md
+       pandoc -s -o $@ $(PANDOCOPTS) $^
 
-pdf: MadewithCreativeCommonsmostup-to-dateversion.xml
-       dblatex -b xetex MadewithCreativeCommonsmostup-to-dateversion.xml
+pdf: $(SOURCE).pdf
+%.pdf: %.xml
+       dblatex -b xetex $^
 
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
-lint: MadewithCreativeCommonsmostup-to-dateversion.xml
+lint: $(SOURCE).xml
        xmllint $(XMLLINTOPTS) $^
 
 .SUFFIXES: .xml .md