Makefile 3.32 KB
Newer Older
Lennart Klebl's avatar
Lennart Klebl committed
1
LUALATEX := lualatex
2
PDFS := examples/title-default.pdf examples/content-default.pdf examples/title-cambridgeUS.pdf examples/content-cambridgeUS.pdf examples/title-darmstadt.pdf examples/content-darmstadt.pdf examples/title-copenhagen.pdf examples/content-copenhagen.pdf
Lennart Klebl's avatar
Lennart Klebl committed
3

Valentin Bruch's avatar
Valentin Bruch committed
4
all: beamer.pdf notes.pdf
Lennart Klebl's avatar
Lennart Klebl committed
5

6 7 8 9
beamer_1610.pdf: image.jpg movie.mp4 beamer.makefile pgf-img/graphene3d.pdf beamer.tex $(PDFS) references.bib
	biber beamer_1610
	$(LUALATEX) -jobname 'beamer_1610' '\providecommand\aspectratio{1610}\input{beamer}'

10 11 12
beamer.pdf: image.jpg movie.mp4 beamer.makefile pgf-img/graphene3d.pdf beamer.tex $(PDFS) references.bib
	biber beamer
	$(LUALATEX) beamer.tex
Valentin Bruch's avatar
Valentin Bruch committed
13

14 15 16 17
beamer_1610.makefile: beamer.tex $(PDFS)
	mkdir -p pgf-img/
	$(LUALATEX) -jobname 'beamer_1610' '\providecommand\aspectratio{1610}\input{beamer}'

Valentin Bruch's avatar
Valentin Bruch committed
18
beamer.makefile: beamer.tex $(PDFS)
Valentin Bruch's avatar
Valentin Bruch committed
19 20 21
	mkdir -p pgf-img/
	$(LUALATEX) beamer.tex

22 23 24
notes.pdf: image.jpg movie.mp4 notes.makefile pgf-img/graphene3d.pdf beamer.tex $(PDFS) references.bib
	$(LUALATEX) -jobname=notes '\providecommand\aspectratio{43}\def\shownotes{1}\input{beamer}'
	biber notes
Valentin Bruch's avatar
Valentin Bruch committed
25 26 27
	$(LUALATEX) -jobname=notes '\providecommand\aspectratio{43}\def\shownotes{1}\input{beamer}'

notes.makefile: beamer.tex $(PDFS)
Valentin Bruch's avatar
Valentin Bruch committed
28 29
	$(LUALATEX) -jobname=notes '\providecommand\aspectratio{43}\def\shownotes{1}\input{beamer}'

Valentin Bruch's avatar
Valentin Bruch committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
examples/title-default.pdf: examples/titlepage.tex
	cd examples; \
	  $(LUALATEX) -jobname=title-default titlepage.tex

examples/content-default.pdf: examples/contentpage.tex
	cd examples; \
	  $(LUALATEX) -jobname=content-default contentpage.tex

examples/title-cambridgeUS.pdf: examples/titlepage.tex
	cd examples; \
	  $(LUALATEX) -jobname=title-cambridgeUS '\providecommand\theme{CambridgeUS}\providecommand\colortheme{beaver}\input{titlepage.tex}'

examples/content-cambridgeUS.pdf: examples/contentpage.tex
	cd examples; \
	  $(LUALATEX) -jobname=content-cambridgeUS '\providecommand\theme{CambridgeUS}\providecommand\colortheme{beaver}\input{contentpage.tex}'
Lennart Klebl's avatar
Lennart Klebl committed
45

46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
examples/title-darmstadt.pdf: examples/titlepage.tex
	cd examples; \
	  $(LUALATEX) -jobname=title-darmstadt '\providecommand\theme{Darmstadt}\input{titlepage.tex}' \
	  $(LUALATEX) -jobname=title-darmstadt '\providecommand\theme{Darmstadt}\input{titlepage.tex}'

examples/content-darmstadt.pdf: examples/contentpage.tex
	cd examples; \
	  $(LUALATEX) -jobname=content-darmstadt '\providecommand\theme{Darmstadt}\input{contentpage.tex}' \
	  $(LUALATEX) -jobname=content-darmstadt '\providecommand\theme{Darmstadt}\input{contentpage.tex}'

examples/title-copenhagen.pdf: examples/titlepage.tex
	cd examples; \
	  $(LUALATEX) -jobname=title-copenhagen '\providecommand\theme{Copenhagen}\input{titlepage.tex}' \
	  $(LUALATEX) -jobname=title-copenhagen '\providecommand\theme{Copenhagen}\input{titlepage.tex}'

examples/content-copenhagen.pdf: examples/contentpage.tex
	cd examples; \
	  $(LUALATEX) -jobname=content-copenhagen '\providecommand\theme{Copenhagen}\input{contentpage.tex}' \
	  $(LUALATEX) -jobname=content-copenhagen '\providecommand\theme{Copenhagen}\input{contentpage.tex}'

Lennart Klebl's avatar
Lennart Klebl committed
66 67 68 69 70
image.jpg: animation.py
	python animation.py
movie.mp4: animation.py
	python animation.py

Valentin Bruch's avatar
Valentin Bruch committed
71
pgf-img/graphene3d.pdf: pgf-img/graphene3d.md5
Valentin Bruch's avatar
Valentin Bruch committed
72
	make -f beamer.makefile
Lennart Klebl's avatar
Lennart Klebl committed
73 74 75 76 77

clean:
	-$(RM) -f *.{aux,nav,out,log,makefile,figlist,auxlock,snm,toc}
realclean: clean
	-$(RM) -f movie.mp4 image.jpg
Valentin Bruch's avatar
Valentin Bruch committed
78
	-$(RM) -rf beamer.pdf notes.pdf pgf-img/