m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarcin Chrzanowski <mc370754@students.mimuw.edu.pl>2022-12-20 22:38:18 +0100
committerMarcin Chrzanowski <mc370754@students.mimuw.edu.pl>2022-12-20 22:38:18 +0100
commitdcd82476cb02d30d1487e0ecf5cee9d9be1fbb15 (patch)
tree62dc5b734e31e26353e573bc5306124c0fa07d25 /Makefile
parentda8a996bbe107d1176bd4b23827c90f27d8cff7d (diff)
Generate images from SVGs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 18 insertions, 6 deletions
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