diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -1,17 +1,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 -mgr.pdf: mgr.tex mgr.bib pracamgr.cls definitions.sty +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 -.PHONY: clean presentation - -presentation/presentation.pdf: presentation/presentation.md - pandoc -f markdown+implicit_figures presentation/presentation.md -t beamer -o presentation/presentation.pdf - 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 |