-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 860 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SLIDES_FILE = presentation
TALK_FILE = talk
SRC = $(shell pwd)
# ***********************************************************
# ****** MAIN
all: # do nothing by default
slides: slides1
slides1: slideslatex
slides2: slidesdocker
talk: talk1
talk1: talklatex
talk2: talkdocker
read:
evince presentation.pdf &
evince talk.pdf &
# ***********************************************************
# ****** BUILD RECIPES
slideslatex:
pdflatex $(SLIDES_FILE)
slidesdocker:
docker pull dxjoke/tectonic-docker
docker run --mount src=$(SRC),target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic --reruns 0 $(SLIDES_FILE).tex"
talklatex:
pdflatex talk.tex
talkdocker:
docker pull dxjoke/tectonic-docker
docker run --mount src=$(SRC),target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic --reruns 0 $(TALK_FILE).tex"