Upcoming events update
[mp-talk.git] / makefile
CommitLineData
c8e58f5a
KA
1slides = slides
2handout = handout
3slides_and_notes = dualscreen
4slidefilename = augustin-metody-czas-czestosc
5git_sha_func = $(shell git describe --always --tags --dirty | tee git-sha)
6git_sha = $(git_sha_func)
7.DEFAULT_GOAL = default
8
9all: $(slides).pdf $(handout).pdf $(slides_and_notes).pdf
10
11default: $(slides).pdf
12
13%.pdf: | %.tex $(slides).wiki.tex
14 pdflatex -shell-escape "$(*)".tex
15 pdflatex -shell-escape "$(*)".tex
16 cp "$(*)".pdf "$(slidefilename)"-"$(*)"-"$(git_sha)".pdf
17
18$(slides).wiki.tex: $(slides).wiki
19 ./wiki2beamer-0.9.2 $(slides).wiki > $(slides).wiki.tex
20
21clean:
22 -rm -vf $(addprefix $(slides).,toc snm log aux out nav pyg)
23 -rm -vf $(addprefix $(handout).,toc snm log aux out nav pyg)
24 -rm -vf $(addprefix $(slides_and_notes).,toc snm log aux out nav pyg)
25 -rm -vf $(addprefix headers.,toc snm log aux out nav pyg)
26 -rm -vf $(slides).pdf $(handout).pdf $(slides_and_notes).pdf $(slides).wiki.tex
27
28distclean: clean
29 -rm -vf "$(slidefilename)"-"$(slides)"-"$(git_sha)".pdf
30 -rm -vf "$(slidefilename)"-"$(handout)"-"$(git_sha)".pdf
31 -rm -vf "$(slidefilename)"-"$(slides_and_notes)"-"$(git_sha)".pdf
32 -rm -vf git-sha
This page took 0.015274 seconds and 4 git commands to generate.