-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
68 lines (55 loc) · 2.42 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
62
63
64
65
66
67
68
# Makefile für die Anfi-Präsentation
# Variablen für die Build-Ordner
TMPDIR = tmp
# Die dependencies müssen stimmen, da sonst keine rebuilds ausgeführt
# werden! "\RequirePackage{snapshot}" ist hier sehr hilfreich, am besten
# aktualisiert man das mal noch automatisch.
DEPENDENCIES = beamercolorthemebeaver.sty beamerouterthemewuerzburg.sty beamerinnerthemechamfered.sty \
pictures/anfibriefe_ws18.png pictures/fachschaft_17.jpg pictures/fsi_saeulen.graphml pictures/papierkram.jpg \
pictures/uebersicht_pi.pdf pictures/anfihefte_ws18.png pictures/fruehstueck_18.jpg pictures/fsi_saeulen.pdf pictures/sommerfest_18.png \
pictures/uebersicht_sand.pdf pictures/clubhaus.jpg pictures/fsilogo_neu.pdf pictures/keepcalm.pdf pictures/stocherkahn.jpg
BASE_CONF =
# Aliases
all: presentation.pdf presentation_short.pdf
full: presentation.pdf
presentation.pdf: presentation.tex $(DEPENDENCIES)
if [ ! -d $(TMPDIR) ]; then mkdir $(TMPDIR); fi
latexmk -output-directory=$(TMPDIR) -pdf -pdflatex="pdflatex" $<
cp $(TMPDIR)/$@ $@
presentation_short.pdf: presentation_short.tex $(DEPENDENCIES)
if [ ! -d $(TMPDIR) ]; then mkdir $(TMPDIR); fi
latexmk -output-directory=$(TMPDIR) -pdf -pdflatex="pdflatex" $<
cp $(TMPDIR)/$@ $@
short: nonotes presentation_short.pdf
nonotes:
echo '$(BASE_CONF)' > makeconfig.tex
annotated: notes presentation_short.pdf
notes:
echo '$(BASE_CONF) \notestrue' > makeconfig.tex
present: annotated
pdfpc -n right presentation_short.pdf
.PHONY: clean
clean:
if [ -d $(TMPDIR) ]; then rm --recursive ./$(TMPDIR); fi
rm -f makeconfig.tex
.PHONY: distclean
distclean: clean
rm -f presentation.pdf presentation_short.pdf
.PHONY: info
info:
@echo 'Build directory: $(TMPDIR)'
@echo 'Dependencies: $(DEPENDENCIES)'
.PHONY: help
help:
@echo 'Building targets:'
@echo ' all - Build the Ersti-Presentations'
@echo ' full - Build the full length Ersti-Presentation'
@echo ' short - Build the shortened Ersti-Presentation'
@echo ' annotated - Build short with notes on the righthand side'
@echo ' present - Build annotated and show using pdfpc (pdfpc required)'
@echo 'Auxiliary targets:'
@echo ' info - Show the current configuration of the makefile'
@echo ' help - Show this help'
@echo 'Cleaning targets:'
@echo ' clean - Remove the $(TMPDIR)-Directory'
@echo ' distclean - Remove the $(TMPDIR)-Directory and presentation.pdf (i.e. everything)'