diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -40,18 +40,21 @@ args_latex += -V frontmatter=yes -V classoption=titlepage -V classoption=$(if $( #flavors = a4 book ebook flavors = a4 ebook args_a4 = -V papersize=a4paper -V fontsize=10pt -V classoption=oneside -args_a4 += -M isbn="978-90-823692-1-2" +args_a4 += -M isbn="978-90-823692-1-2" -V coverpage="$(stem)-a4-front.pdf" args_book = -V papersize=b5paper -V fontsize=10pt -V classoption=twoside args_ebook = -V papersize=ebook -V fontsize=12pt -V classoption=oneside -V classoption=openany args_ebook += -M isbn="978-90-823692-0-5" all: $(flavors:%=$(stem)-%.pdf) -download: get-$(stem).raw +download: get-$(stem).raw get-$(stem)-a4-front.pdf get-$(stem).raw: get-%: ./mediawiki-fetch $(source_baseurl) $(source_basename) $* +get-$(stem)-a4-front.pdf: get-%: + wget -O $* http://www.greens-efa.eu/fileadmin/dam/Documents/Studies/Ensuring-Utmost-Transparency--Piana-Oberg-Korff.pdf + $(stem).mw: $(stem).raw ./mediawiki-trim $< $@ ./mediawiki-blockquote $@ @@ -65,6 +68,7 @@ $(markdown_includes:.md=.tex): %.tex: %.md pandoc -f markdown -t latex --chapters -o $@ $< $(flavors:%=deps-%):: $(templates) $(includes) Makefile +deps-a4:: $(deps) $(stem)-a4-front.pdf $(flavors:%=$(stem)-%.pdf): $(stem)-%.pdf: $(stem).native $(deps-all) deps-% pandoc --standalone --no-tex-ligatures $(args_meta) $(args_latex) $(args_$*) -o $@ $< @@ -74,4 +78,4 @@ clean: rm -f $(includes) distclean: clean - rm -f $(stem:%=%.raw) + rm -f $(stem:%=%.raw) $(stem:%=%-a4-front.pdf) |