-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
59 lines (56 loc) · 1.68 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
MK = latexmk
all: book.pdf TAGS
book.pdf: always figures version.tex macros.fmt
$(MK) -quiet book
see-errors: figures version.tex macros.fmt
$(MK) book
one-by-one: figures version.tex macros.fmt
pdflatex -halt-on-error --shell-escape -fmt macros book.tex
makeindex book.idx
biber book
pdflatex -halt-on-error --shell-escape -fmt macros book.tex
makeindex book.idx
pdflatex -halt-on-error --shell-escape -fmt macros book.tex
figures:
mkdir $@
macros.fmt: macros.tex tikzsetup.tex
pdflatex -ini -jobname="macros" "&pdflatex macros.tex\dump"
version.tex: .git/refs/heads/$(shell git branch --show-current)
git log -1 --date=short \
--pretty=format:'\newcommand{\OPTcommit}{%h}%n\newcommand{\OPTdate}{%ad}%n' \
> version.tex
clean:
rm -rf *.aux *.fdb_latexmk *.fls *.log *.out *.toc *.brf *.blg *.bbl *.bcf \
*.run.xml *.glo *.gls *.idx *.ilg *.ind \
*.auxlock *.synctex.gz TAGS version.tex macros.fmt
cleanall:
rm -rf *.aux *.fdb_latexmk *.fls *.log *.out *.toc *.brf *.blg *.bbl *.bcf \
*.run.xml *.glo *.gls *.idx *.ilg *.ind \
book.pdf *.auxlock *.synctex.gz figures TAGS version.tex macros.fmt
always:
# This list should include all the tex files that go into the book, in the order they go.
# Compare with the \include commands in book.tex
BOOKFILES := \
macros.tex \
tikzsetup.tex \
book.tex \
intro.tex \
intro-uf.tex \
circle.tex \
group.tex \
actions.tex \
absgroup.tex \
congp.tex \
subgroups.tex \
symmetry.tex \
fingp.tex \
fggroups.tex \
abelian.tex \
fields.tex \
geometry.tex \
galois.tex \
history.tex \
metamath.tex \
choicefin.tex
TAGS : Makefile $(BOOKFILES)
etags $(BOOKFILES)