diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-03-24 19:11:26 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-03-24 19:11:26 +0100 |
commit | fa299ec2b25c0ce9e536e066eb4d817e9b3cebbb (patch) | |
tree | c178caa807c739b4711502f07ac84f0b5227f6ad | |
parent | 0c5d445808f016622c08988639c3c022381bf14d (diff) |
Generalize download target.
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 $< $@ |