-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMakefile
48 lines (35 loc) · 1.27 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
name = default
latexmk = perl latexmk/latexmk.pl
sources = $(wildcard *.tex) $(wildcard *.sty) $(wildcard *.bib)
max_pages = 8
.PHONY: all imgs clean allclean auto \
submission archive arxiv clean-submission
all: abstract.txt $(name).pdf standalone-supplement.pdf
abstract.txt: abstract.tex scripts/remove-comment.awk
awk -f scripts/remove-comment.awk $< > $@
$(name).tex: Makefile
( echo "% This file is autogenerated. See Makefile and README " ; echo "\input{main.tex}") > $@
grep -q $(name).tex .gitignore || (echo $(name).tex >> .gitignore)
%.aux %.bbl %.blg %.fls %.log %.out %.fdb_latexmk %.pdf: %.tex imgs $(sources)
-$(latexmk) -pdf \
-latexoption="-halt-on-error -shell-escape" \
-bibtex \
$<
%.ja.aux %.ja.bbl %.ja.blg %.ja.fls %.ja.log %.ja.out %.ja.fdb_latexmk %.ja.pdf: %.tex imgs $(sources)
$(latexmk) -r latexmk/rc_ja.pl \
-latexoption="-halt-on-error -shell-escape" \
-pdfdvi \
-bibtex \
$<
auto:
+bash scripts/make-periodically.sh
imgs:
$(MAKE) -C img
clean: clean-submission
-rm -r *~ *.aux *.dvi *.log *.toc *.bbl *.*pyg* *.out \
*.blg *.utf8 *.elc $(name).pdf supplemental.pdf combined.pdf \
*.fdb_latexmk __* *.fls *.subm* \
_minted*
allclean: clean
$(MAKE) -C img clean
include scripts/submission.mk