From 2e6d8dcf96bc2a09ab496807368f7de402bea3e0 Mon Sep 17 00:00:00 2001 From: Gunnar Wolf Date: Mon, 31 Jul 2017 13:31:42 -0500 Subject: [PATCH] Makefile patch by Petter Reinholdtsenfor the PDF build process. Thanks! --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 2.47.2