]>
Commit | Line | Data |
---|---|---|
072b284b | 1 | # Variablen |
072b284b | 2 | PANDOC_PAPER=--write latex |
bc9a8fdf | 3 | PANDOC_BEAMER=-t beamer --slide-level 2 |
072b284b VD |
4 | RUBBER_ARG=-d |
5 | ||
6 | # main targets | |
7 | paper: thesis.pdf | |
8 | mv $< paper.pdf | |
5f043704 | 9 | cp paper.pdf /srv/ftp/share/archive/ba-thesis.pdf |
072b284b VD |
10 | rubber $(RUBBER_ARG) --clean thesis |
11 | rm -f thesis.vrb | |
12 | ||
bc9a8fdf VD |
13 | # main targets |
14 | beamer: presentation.pdf | |
15 | mv $< beamer.pdf | |
16 | cp beamer.pdf /srv/ftp/share/archive/ba-defence.pdf | |
17 | rubber $(RUBBER_ARG) --clean presentation | |
18 | rm -f presentation.vrb | |
19 | ||
072b284b | 20 | # Convert markdown to tex using pandoc |
072b284b VD |
21 | chapters.tex: $(wildcard chapters/*.md) |
22 | pandoc $(PANDOC_PAPER) -o $@ chapters/*.md | |
23 | ||
bc9a8fdf VD |
24 | # Convert markdown to tex using pandoc |
25 | slides.tex: $(wildcard slides/*.md) | |
26 | pandoc $(PANDOC_BEAMER) -o $@ slides/*.md | |
27 | ||
072b284b | 28 | # Build pdfs |
bc9a8fdf VD |
29 | presentation.tex: slides.tex |
30 | ||
072b284b VD |
31 | thesis.tex: chapters.tex |
32 | ||
33 | %.pdf: %.tex | |
34 | rubber $(RUBBER_ARG) $< | |
35 | ||
36 | # Generic | |
37 | clean: | |
072b284b VD |
38 | rubber $(RUBBER_ARG) --clean thesis |
39 | rm -f slides.tex presentation.vrb beamer.pdf | |
40 | rm -f chapters.tex thesis.vrb paper.pdf |