m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: effa364153d8a5620284d85b8e0a5f075d341e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FIGURES := figures/partition.pdf \
		   figures/subtree-with-hole.pdf \
		   figures/tree-graph.pdf \
		   figures/tree-marked.pdf \
		   figures/tree.pdf \
		   figures/word.pdf

.PHONY: all presentation clean

all: mgr.pdf presentation/presentation.pdf

figures/%.pdf: figures/%.svg
	inkscape -D "$<" -o $@ --export-latex
	sed -ie "s#{$(@F)#{$@#" $(@:.pdf=.pdf_tex)

mgr.pdf: mgr.tex mgr.bib pracamgr.cls definitions.sty $(FIGURES)
	lualatex mgr
	biber mgr
	lualatex mgr

presentation: presentation/presentation.pdf

presentation/presentation.pdf: presentation/presentation.md $(FIGURES)
	pandoc -f markdown+implicit_figures presentation/presentation.md -t beamer -o presentation/presentation.pdf

clean:
	rm -rf mgr.pdf mgr.aux mgr.bbl mgr.bcf mgr.blg mgr.log mgr.run.xml mgr.toc
	rm -rf presentation/presentation.pdf
	rm -rf figures/*.pdf figures/*.pdf_tex