From dcd82476cb02d30d1487e0ecf5cee9d9be1fbb15 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 20 Dec 2022 22:38:18 +0100 Subject: Generate images from SVGs --- Makefile | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fbb3fe8..effa364 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3