summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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 $@ $<