-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (49 loc) · 1.13 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
# Required Tools Installed
# ---------------------------
# - gcc
# - latexmk
# - pdflatex
# - pandoc
#CXX = g++
#CXXFLAGS = -Wall -Werror -Wextra -pedantic -std=c++17 -g -fsanitize=address
#LDFLAGS = -fsanitize=address
.PHONY: setup clean pub
REPORT_NAME = report
PRESENATION_NAME = presentation
OUT_DIR = dist/
all: clean setup report keynote pub
setup:
mkdir -p ${OUT_DIR}
report: report.tex
latexmk -bibtex -diagnostics -jobname=${REPORT_NAME} --file-line-error --interaction=nonstopmode -pdf report.tex
keynote: presentation.tex
latexmk -bibtex -diagnostics -jobname=${PRESENATION_NAME} --file-line-error --interaction=nonstopmode -pdf presentation.tex
pub:
cp ${REPORT_NAME}.pdf ${OUT_DIR}
cp ${PRESENATION_NAME}.pdf ${OUT_DIR}
clean:
latexmk -CA
rm -f *.log
rm -f *.fls
rm -f *.nav
rm -f *.aux
rm -f *.out
rm -f *.toc
rm -f *.snm
rm -rf dist
rm -f *.ist
rm -f *.bbl
rm -f *.gls
rm -f *.alg
rm -f *.acn
rm -f *.glo
rm -f *.glg
rm -f *.lot
rm -f *.bcf
rm -f *.blg
rm -f *.lof
rm -f *.run.xml
rm -f *.acr
rm -f *.fdb_latexmk
rm -f ${REPORT_NAME}.pdf
rm -f ${PRESENATION_NAME}.pdf