-
Notifications
You must be signed in to change notification settings - Fork 103
/
Makefile
31 lines (22 loc) · 579 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
FILENAME = HEPML
date = $(shell date +%Y-%m-%d)
output_file = draft_$(date).pdf
LATEX = lualatex
BIBTEX = bibtex
all: default
default: document copy_draft
document:
latexmk -$(LATEX) -logfilewarnings -halt-on-error $(FILENAME)
copy_draft:
rsync $(FILENAME).pdf $(output_file)
clean:
rm -f *.aux *.bak *.bbl *.blg *.dvi *.idx *.lof *.log *.lot *.toc \
*.glg *.gls *.glo *.xdy *.nav *.out *.snm *.vrb *.mp \
*.synctex.gz *.run.xml *.bcf *.brf *.fls *.fdb_latexmk
realclean: clean
rm -f *.ps *.pdf
final:
if [ -f *.aux ]; \
then make clean; \
fi
make document