summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7286621..0cee694 100644
--- a/Makefile
+++ b/Makefile
@@ -47,8 +47,10 @@ args_ebook += -M isbn="978-90-823692-0-5"
all: $(flavors:%=$(stem)-%.pdf)
-download:
- ./mediawiki-fetch $(source_baseurl) $(source_basename) $(stem).raw
+download: get-$(stem).raw
+
+get-$(stem).raw: get-%:
+ ./mediawiki-fetch $(source_baseurl) $(source_basename) $*
$(stem).mw: $(stem).raw
./mediawiki-trim $< $@