From 7014e6f7fd1e20f7e123e9dafd6d353dc1f2155c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 6 Jan 2015 15:15:25 +0100 Subject: Really fix declare (as separate target) target for Mediawiki includes creation. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6f1780e..29b20dd 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ all: $(flavors:%=$(stem)-%.pdf) download: wget -O $(stem).raw '$(source_baseurl)w/index.php?title=$(source_basename)&action=edit' -$(stem).mw $(mediawiki_includes): $(stem).raw +$(stem).mw: $(stem).raw ./mediawiki-extract $< $@ ./mediawiki-trim $@ ./mediawiki-blockquote $@ @@ -59,6 +59,7 @@ $(stem).mw $(mediawiki_includes): $(stem).raw $(stem).native: $(stem).mw $(localfilters) $(env_filter) pandoc -f mediawiki $(args_meta) $(args_filter) -o $@ $< +$(mediawiki_includes): $(stem).mw $(mediawiki_includes:.mw=.tex): %.tex: %.mw $(stem).mw pandoc -f mediawiki -t latex --chapters -o $@ $< -- cgit v1.2.3