-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
61 lines (47 loc) · 1.84 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
LATEXMK=latexmk -g
LATEXMKOPT=-shell-escape
LATEXMKOUTPUT=-output-directory=build/
XELATEX=-xelatex
CLOCK=Clock
CLOCK_NOTES=Clock_notes
CLOCK_HANDOUT=Clock_handout
CLOCK_HANDOUT_NOTES=Clock_handout_notes
INPUT=000-Clock
C="\documentclass[aspectratio=1610, twocolumn]{beamer}\input{header}\\begin{document}\input{$(INPUT)}\\end{document}"
CH="\documentclass[aspectratio=1610, twocolumn, handout]{beamer}\input{header}\\begin{document}\input{$(INPUT)}\\end{document}"
CN="\documentclass[aspectratio=1610, twocolumn]{beamer}\input{header}\setbeameroption{show notes on second screen=right}\\begin{document}\input{$(INPUT)}\\end{document}"
CHN="\documentclass[aspectratio=1610, twocolumn, handout]{beamer}\input{header}\setbeameroption{show notes on second screen=right}\\begin{document}\input{$(INPUT)}\\end{document}"
BUILD_DIR=build/
OUTPUTDIR=docs/
MK=$(LATEXMK) $(XELATEX) $(LATEXMKOPT) $(LATEXMKOUTPUT)
PDF=$(CLOCK_NOTES)
all: $(CLOCK) $(CLOCK_HANDOUT) $(CLOCK_NOTES) $(CLOCK_HANDOUT_NOTES)
$(CLOCK):
echo $(C) > $(CLOCK).tex
$(MK) $(CLOCK)
cp $(BUILD_DIR)[email protected] $(OUTPUTDIR)[email protected]
rm $(CLOCK).tex
$(CLOCK_HANDOUT):
echo $(CH) > $(CLOCK_HANDOUT).tex
$(MK) $(CLOCK_HANDOUT)
cp $(BUILD_DIR)[email protected] $(OUTPUTDIR)[email protected]
rm $(CLOCK_HANDOUT).tex
$(CLOCK_NOTES):
echo $(CN) > $(CLOCK_NOTES).tex
$(MK) $(CLOCK_NOTES)
cp $(BUILD_DIR)[email protected] $(OUTPUTDIR)[email protected]
rm $(CLOCK_NOTES).tex
$(CLOCK_HANDOUT_NOTES):
echo $(CHN) > $(CLOCK_HANDOUT_NOTES).tex
$(MK) $(CLOCK_HANDOUT_NOTES)
cp $(BUILD_DIR)[email protected] $(OUTPUTDIR)[email protected]
rm $(CLOCK_HANDOUT_NOTES).tex
clean:
rm -rf $(BUILD_DIR)*
PREPARE_CACHE:
pdfpc -n right --persist-cache $(OUTPUTDIR)$(PDF).pdf
PRESENTATION_AND_COFEE:
pdfpc -n right -d 20 --persist-cache $(OUTPUTDIR)$(PDF).pdf
PRESENTATION_CONDENSED:
pdfpc -n right $(OUTPUTDIR)$(CLOCK_HANDOUT_NOTES).pdf
.PHONY: clean all PREPARE_CACHE CACHED_PRESENTATION