summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-03-24 19:11:26 +0100
committerJonas Smedegaard <dr@jones.dk>2015-03-24 19:11:26 +0100
commitfa299ec2b25c0ce9e536e066eb4d817e9b3cebbb (patch)
treec178caa807c739b4711502f07ac84f0b5227f6ad /Makefile
parent0c5d445808f016622c08988639c3c022381bf14d (diff)
Generalize download target.
Diffstat (limited to 'Makefile')
-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 $< $@