From: Gunnar Wolf Date: Mon, 31 Jul 2017 18:31:42 +0000 (-0500) Subject: Makefile patch by Petter Reinholdtsenfor the PDF build process. Thanks! X-Git-Tag: es-printed~748^2~1 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/2e6d8dcf96bc2a09ab496807368f7de402bea3e0 Makefile patch by Petter Reinholdtsenfor the PDF build process. Thanks! --- diff --git a/Makefile b/Makefile index c8f8093..293596a 100644 --- 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