From fa299ec2b25c0ce9e536e066eb4d817e9b3cebbb Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 24 Mar 2015 19:11:26 +0100 Subject: Generalize download target. --- Makefile | 6 ++++-- 1 file 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 $< $@ -- cgit v1.2.3